1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00:00
Commit Graph

544 Commits

Author SHA1 Message Date
Timo Sirainen
e2ffdfec50 don't crash if server sends us !channel name less than 6 chars.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2817 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-19 08:18:09 +00:00
Timo Sirainen
5be5d14890 Stop reconnecting on kills only if the kill was done by operator, not
server.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2813 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-18 05:59:13 +00:00
Timo Sirainen
3b5b10791a banlist_find() is now public. "event 367" (banlist) shows now ban number in
our list, if it's known.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2807 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-18 03:07:57 +00:00
Timo Sirainen
3ecf864f18 !channel fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2803 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-17 15:22:05 +00:00
Timo Sirainen
ede752530e new !channel support was buggy, as I tried it only with channel names having
less than 5 chars :) Now it works so that if you join !channel, you see it
as !channel. If you join !ABCDEchannel, you'll again see that.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2802 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-17 14:49:15 +00:00
Timo Sirainen
d346fbe1a9 Better !channel support - window items now have "visual_name" and channels
and queries also have "name". Normally they're identical but with !channels
the visible_name contains the short !channel name, while name contains
full !ABCDEchannel name.

The visible_name should be used whenever displaying the channel name, or as
printtext()'s target. So, this breaks a few scripts in !channels, they need
to be modified to use $channel->{visible_name} instead.

Also /LAYOUT SAVE should finally work properly with !channels.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2797 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-16 00:34:37 +00:00
Timo Sirainen
a5f4fd43cc don't add same ban more than once to banlist.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2790 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-13 18:16:17 +00:00
Timo Sirainen
91882b1a2b irc_send_cmd_split() printed glib warning if nick parameter didn't exist.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2740 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-29 19:39:57 +00:00
Timo Sirainen
e447edc0e8 signal_add_first("event join".. so normal join handlers can know about the
nick.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2720 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-27 01:38:30 +00:00
Timo Sirainen
33738b682c Don't treat +d as regular channel mode.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2717 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-26 13:04:16 +00:00
Timo Sirainen
0cc7baa7df channel->topic_by now always contains the host info too (nick!user@host).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2713 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-24 12:38:27 +00:00
Timo Sirainen
e47cab1ecc Added setby-parameter to "nick mode changed" and "channel mode changed"
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2704 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-22 09:47:13 +00:00
Timo Sirainen
bd00ff54c2 Fixed one error and several warnings with GLIB 2.0
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2663 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-10 02:53:06 +00:00
Timo Sirainen
4187402348 workaround for some server that doesn't reply anything to pings.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2656 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-05 09:09:30 +00:00
Timo Sirainen
bfae72766e Don't set channel->server = NULL when disconnecting, so scripts can still
use it in eg. "channel destroyed". Patch by Qrczak


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2648 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-31 19:07:23 +00:00
Timo Sirainen
dc4b7456dc with 10 char usernames, ban "*234567890" instead of "*12345678*"
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2647 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-31 12:04:57 +00:00
Timo Sirainen
091095fff3 Allow /OP, etc. commands for server operators as well. They may not work
everywhere, but the whole point of the check was to avoid accidental /OP *
or something while not opped in some huge channel.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2628 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-17 09:13:18 +00:00
Timo Sirainen
500ae5773e If autojoining to !channel failed because it didn't exist, create it by
joining to !!channel


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2627 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-17 02:50:12 +00:00
Timo Sirainen
bd7e173c63 Fixed that "nick already in split list, how?" bug with a patch from fuchs.
I didn't realize someone else could change nick to one in the split list. :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2614 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-14 23:01:57 +00:00
Timo Sirainen
2ab05e7872 $cumode and $cumode_space should do stuff only to IRC servers.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2611 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-14 11:36:31 +00:00
Timo Sirainen
86dcbd11e4 If queried nick did a nick change, it might have crashed irssi.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2599 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-13 03:06:31 +00:00
Timo Sirainen
4770c1c4ee *** empty log message ***
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2597 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-13 02:59:01 +00:00
Timo Sirainen
65e87c9861 fix to some broken "ircds"
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2589 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-12 20:51:03 +00:00
Timo Sirainen
2865d3a33f /SET max_wildcard_modes 0 should disable the checking
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2578 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-11 04:30:13 +00:00
Timo Sirainen
abe4e30256 Safer flood protection for lines longer than 100 chars. Maybe even a bit too
safe but generally you write lines less than 100 chars so it shouldn't
really matter. Calculated (2 + line_length/100) in seconds.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2575 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-11 03:11:18 +00:00
Timo Sirainen
9398746e61 Automatically change the nick to correct case in queries (eg. you did
/QUERY nick, and the nick really was Nick, irssi would change the query to
Nick as well)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2565 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10 19:23:22 +00:00
Timo Sirainen
25ed0acc65 If you had query with "X" but the nick really was "x", and after nick change
to "X" you saw "X changed nick to X"


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2561 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10 16:23:37 +00:00
Timo Sirainen
aae7eae9a0 Added /SET max_wildcard_modes (default 6) - if a wildcard to /OP, /DEOP,
/VOICE or /DEVOICE matches more nicks than this, -yes option is required.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2560 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10 16:15:03 +00:00
Timo Sirainen
15e716e283 Added '.' to known nick flag characters. Also supports having multiple flag
chars in /NAMES list, so eg. "@+nick" works or ".@nick" which is already
used by some servers.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2559 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10 16:00:38 +00:00
Timo Sirainen
44247af3ff /KNOCKOUT code was a bit stupid, and the timeout checking wasn't very
/accurate.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2551 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10 14:31:07 +00:00
Timo Sirainen
a6f4afab2d /OP etc. shouldn't crash if channel hadn't received /NAMES list yet.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2538 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-08 18:40:43 +00:00
Timo Sirainen
87946e381f $cumode wasn't updated after receiving nick list, so with empty channels it
didn't contain @ immediately.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2521 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-20 15:03:53 +00:00
Timo Sirainen
01bcf83b56 server->emode_known wasn't saved during /UPGRADE.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2473 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-16 10:41:32 +00:00
Timo Sirainen
2649a06fa5 There was the check for max. 10 chars/ban, but for some reason it was 11 in
code :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2467 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-16 06:56:31 +00:00
Timo Sirainen
b76b41aa6f server->real_address wasn't restored properly after /UPGRADE and that
started to raise lag (or maybe crash). Also removed some backwards
compatibility code.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2442 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 08:26:12 +00:00
Timo Sirainen
3dc9cbbf24 the last 001 fix was useless, removed the if() part so now the real_address
is changed every time 001 is received :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2440 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-13 16:05:47 +00:00
Timo Sirainen
264e172abf 001 event should free real_address if it already existed. this might happen
with for example irc bouncers.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2437 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-13 15:11:47 +00:00
Timo Sirainen
f37ea1af1e updated the glib error message with netsplits
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2436 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-13 15:08:28 +00:00
Timo Sirainen
7f8b0f07ec support for event 477 which aborts joins to +R channels in dalnet.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2414 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10 12:13:00 +00:00
Timo Sirainen
c674db5c8e Don't stop reconnecting to server if we get nick collided
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2408 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10 10:21:46 +00:00
Timo Sirainen
06a33691f4 make sure redirect_continue is set to NULL if it contains the redirection
that is being destroyed.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2385 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-03 22:28:09 +00:00
Timo Sirainen
7c94cb083f Added target_type to send_message(), -channel and -nick parameters to /MSG
to specify if it's supposed to be to channel/nick. /MSG -channel is used
automatically by irssi when sending messages to channel (the "normal" way
without /msg). This should help with protocols that don't have any channel
name prefixes.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2383 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-03 21:53:37 +00:00
Timo Sirainen
aa544dec32 Added PARAM_FLAG_OPTCHAN_NAME which is like PARAM_FLAG_OPTCHAN, but doesn't
allow using "*" to specify active channel. Used with /OP, /DEOP, /VOICE and
/DEVOICE so you can do /OP * again :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2380 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-03 18:24:22 +00:00
Timo Sirainen
85b63bf546 Also, if alternate_nick is "", don't go set it to connection record..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2373 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-02 17:27:20 +00:00
Timo Sirainen
feec7bfb62 /SET alternate_nick should default to "", not NULL which would cause
problems.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2372 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-02 17:26:11 +00:00
Timo Sirainen
bd91fbc88b The "check if nick change was done with our /NICK" didn't work if this was
our first nick change..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2368 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-01 23:32:21 +00:00
Timo Sirainen
c4e8d67bf9 Added optional channel parameter to /OP, /DEOP, /VOICE and /DEVOICE
commands.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2366 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-01 23:01:58 +00:00
Timo Sirainen
05ecb785fb "/MODE #channel -k" automatically appends the channel key if it wasn't
given.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2360 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-30 01:57:34 +00:00
Timo Sirainen
0cdc8a7f6a Whops, crasfix for last "fix". :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2353 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-28 23:31:36 +00:00
Timo Sirainen
747d0f19ca Fixed a few minor memleaks. Don't use g_strdup() in lib-popt because it may
be freed with a real free() call instead of g_free().


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2352 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-28 15:20:57 +00:00
Timo Sirainen
08c23ce6d4 Don't change the "wanted nick" when receiving NICK event from server, unless
we did the /NICK change. This is useful with the new irc servers changing
your nick to your UID instead of killing you, at reconnect time you'd get
"invalid nick" when irssi would try setting the UID as your nick..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2351 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-28 05:28:25 +00:00
Timo Sirainen
f4897860b5 toupper(), tolower(), isspace(), is..etc..() aren't safe with chars in some
systems, use our own is_...() functions now instead.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2348 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-27 20:45:59 +00:00
Timo Sirainen
46a6cf58f3 Don't send proxy commands to server if -noproxy option was used.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2341 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-23 00:23:31 +00:00
Timo Sirainen
0157d234f8 Added /SET proxy_string_after setting which gets sent after NICK/USER, bnc
wants this.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2338 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-22 20:29:45 +00:00
Timo Sirainen
cda3d1eaee Using signal_add_first() for a few more signals now, so they can be stopped by scripts.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2332 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-21 16:57:44 +00:00
Timo Sirainen
93061dd48f Handle PING requests now properly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2330 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-20 14:03:14 +00:00
Timo Sirainen
e6bf76ed11 Don't try to set alternate_nick to any default value, it's not very useful
and it didn't work properly if nick was 9 chars with last char being '_'
(not very likely though :). Also handle properly the situation where nick
and alternate_nick are the same.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2311 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-12 12:03:00 +00:00
Timo Sirainen
4cd853feec Purge the commands in queue for channel if you get kicked from there.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2305 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-10 18:39:02 +00:00
Timo Sirainen
4840b1575f Changed again behaviour of resetting user modes when reconnecting to server,
it was also buggy and didn't work.. Anyway, now we don't anymore even try to
remove "non-wanted" modes set by server when reconnecting, if you really
don't want to have some mode, set it with -x in /set usermode.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2304 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-10 18:36:27 +00:00
Timo Sirainen
9fffa58c20 Actions are now sent in "ctcp action" signal which is never ignored. "ctcp
msg action" doesn't work anymore nor does it show in "ctcp msg"s.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2303 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-10 18:02:22 +00:00
Timo Sirainen
897aa03814 irc_send_cmd() now doesn't call server_disconnect(), but rather just mark
the connection_lost to TRUE, the disconnection is after the "server
incoming" signal is finished.

Changed irc_parse_incoming() back to not handling any commands in server's
input buffer after server_disconnect() is called, it's not safe enough.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2299 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-09 17:00:45 +00:00
Timo Sirainen
a72f7244ff server_disconnect() should do nothing if you call it twice, especially it
shouldn't emit the "server disconnected" again.

We'll now handle the remaining data coming from server after disconnection.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2290 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-02 21:21:49 +00:00
Timo Sirainen
3f75bd3c3c Abort joins on 442-numeric that dalnet sends when you can't join to channel
because you've not registered your nick.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2288 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-31 16:30:32 +00:00
Timo Sirainen
0ccf0ebdff argh, typofix :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2284 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-27 12:40:31 +00:00
Timo Sirainen
555e3e6395 Added an extra check to make sure nothing bad happens..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2283 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-27 12:40:09 +00:00
Timo Sirainen
c15769685c Check that the nick doesn't get added twice to nicklist, seems to happen sometimes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2280 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-22 02:28:22 +00:00
Timo Sirainen
4bc4da5c6b mode +d is now also treated as having argument (hybrid 7 / dancer realname ban)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2266 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-17 19:47:23 +00:00
Timo Sirainen
496db0eefc Redirections were broken if server_redirect_event() didn't list the stop
event.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2246 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-14 16:11:13 +00:00
Timo Sirainen
6ec7d152b0 Fixed some asserts.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2244 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-14 02:02:08 +00:00
Timo Sirainen
6774b4b30f Added reference counting to server record. At least now we don't accidentally
use a destroyed server record when some /command disconnects the server
(shouldn't happen really) or when irc_send_cmd() fails sending data to server
and disconnects the server (I don't know if this ever happens, but if it does,
it very well could have caused crashes)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2243 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-14 01:54:12 +00:00
Timo Sirainen
ebd09ede51 bugfix for previous fix :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2242 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-14 01:43:41 +00:00
Timo Sirainen
f8dd514805 e/I/O/q mode changes shouldn't change the visible channel mode.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2241 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-14 00:42:25 +00:00
Timo Sirainen
d4ee6fd604 User mode changes weren't visible.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2237 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-11 15:15:38 +00:00
Timo Sirainen
3f59c18082 Fixed a memory leak + some cleanups
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2236 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-11 02:02:47 +00:00
Timo Sirainen
020861c698 Netsplit saved the NICK_REC, but didn't save the dynamically allocated strings
which were part of it. Removed it now and replaced it with saving only
op/halfop/voice status. Might have caused some crashes? (hopefully did :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2234 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-10 23:32:46 +00:00
Timo Sirainen
15e815e8d3 Better support for halfops, patch by yathen@web.de
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2228 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-09 17:13:48 +00:00
Timo Sirainen
ec79871a7a server_redirect_peek_signal() now contains int *redirected parameter which
indicates if event belongs to redirection even while it didn't have any
redirection signal. Proxy uses this to figure out if the event should be
sent to clients or not (/WHOIS in proxy sent 3 middle lines to all clients
before this).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2221 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 23:41:45 +00:00
Timo Sirainen
9a44941ca4 "redirect first" and "redirect last" events can be used with
server_redirect_event() to get a signal emitted when redirection begins /
ends.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2215 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 21:41:46 +00:00
Timo Sirainen
14d6e95656 Still ban exception / invite list removes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2214 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 21:39:53 +00:00
Timo Sirainen
3f275ebd55 Added support for 326 and 327 whois numerics in OPN.
Removed keeping track of ban exceptions and invite list.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2212 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 19:40:37 +00:00
Timo Sirainen
5bab99f096 Fixed 2 small memory leaks.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2209 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 04:27:32 +00:00
Timo Sirainen
4c6237256f /IRCNET ADD -usermode option added.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2206 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-06 23:29:48 +00:00
Timo Sirainen
be8778052e On nick collision kills, reconnect back immediately. On any other type of
kills, stop reconnecting to the server entirely.

When reconnecting to server and setting back the old user mode, only use the
modes that we actually wanted to change with /MODE commands, don't try to
set back modes given to us by server (eg. +r).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2205 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-06 23:10:41 +00:00
Timo Sirainen
aeae7935ec MAX_FAILURE_COUNT was used off-by-one (ie. 1 meant actually 0..)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2190 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03 23:46:12 +00:00
Timo Sirainen
5f7774db81 "channel wholist" still wasn't sent at proper times.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2188 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03 20:39:14 +00:00
Timo Sirainen
09b380536f "channel wholist" was sent to channels that hadn't received /WHO list yet.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2187 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03 20:09:17 +00:00
Timo Sirainen
85d0060426 Don't fail the remote redirections either until MAX_FAILURE_COUNT
redirections have gone without reply to our redirection. This is because
the timeout itself may fail if lag to the server is too high.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2177 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-01 20:36:44 +00:00
Timo Sirainen
348461aa08 Only use registered start events to begin a server redirection - not those
that are just given in server_redirect() (fixes a small problem of /MSG nick
who is away + /WHOIS nick, then receiving the first away reply from server
to /MSG command irssi thinks it's a reply to /WHOIS)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2175 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-01 20:17:57 +00:00
Timo Sirainen
ed7d5addc9 Disable lag detection in servers that don't understand PING command (yes,
there was at least one..)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2174 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-01 19:44:54 +00:00
Timo Sirainen
d4411e4545 Removed settings_add_bool(.., "join_auto_chans_on_invite", ..) here, it's
already done in channel-events.c and causes glib error.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2171 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-30 00:31:47 +00:00
Timo Sirainen
5d52832efd /WALLCHOPS are now printed to screen. Receiving notices for @#channel
are printed like receiving wall messages. /ACTION @#channel didn't work
properly.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2169 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-29 23:31:16 +00:00
Timo Sirainen
53b4ad6c58 /QUOTE and /RAWQUOTE shouldn't work until connect() to server is finished.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2165 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-29 19:19:29 +00:00
Timo Sirainen
241fc61d23 added support for servers where /WHO only gives "end of who" message.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2153 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 21:59:49 +00:00
Timo Sirainen
53bdd8f602 Irssi didn't properly abort a redirection of which end event it missed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2152 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 20:55:45 +00:00
Timo Sirainen
e8b71dcd98 Added backwards compatibility for /UPGRADE for transferring nick list..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2149 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 17:06:11 +00:00
Timo Sirainen
ed4d24b282 /UPGRADE: Irssi no longer asks for /NAMES list from server when
rejoining channels, but the nick list is transferred in session file.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2144 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 16:13:12 +00:00
Timo Sirainen
53ce47a81a irc_send_cmd_split() - don't crash if there was no nicks given (probably
called improperly from script)..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2123 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 03:26:36 +00:00
Timo Sirainen
8279d9c5c2 /SET join_auto_chans_on_invite setting wasn't registered so it didn't work..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2115 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 02:04:44 +00:00
Timo Sirainen
bb3592f5c7 /UPGRADE: server command queue is now flushed to make sure everything
gets sent to server. Channels are now stored in in config blocks
instead of just in one string, this way we can restore the topic and
key. Away status in server is also restored.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2113 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 01:29:23 +00:00
Timo Sirainen
1efdf062c6 Removed whois_coming-flag which was used to figure out if 301 event
should be printed as whois-message or normal "nick is away" message.
Server redirections are used for that now. Some servers also send 301
event in /WHOWAS reply, this works now as well.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2104 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 22:34:50 +00:00
Timo Sirainen
725a66df7f Changed default of /SET lag_check_time from 30 to 60.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2103 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 22:22:30 +00:00
Timo Sirainen
d5f22075c7 /UPGRADE now remembers user mode, patch by lam@e-gate.pl
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2084 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 15:45:40 +00:00
Timo Sirainen
ee708c1469 -botcmd isn't now sent to channels when /UPGRADEing.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2078 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 13:14:37 +00:00
Timo Sirainen
cf0b863f39 /SET join_auto_chans_on_invite - patch by tygrys@moo.pl
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2077 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 13:02:39 +00:00
Timo Sirainen
1599a51b13 Topics weren't restored on /UPGRADE.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2075 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 12:42:48 +00:00
Timo Sirainen
bbbb36cf19 /UPGRADE - upgrade-on-the-fly feature. Currently only moves the active
server connections to the new irssi process, but that should be enough to
never quit from IRC again :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2070 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 01:48:58 +00:00
Timo Sirainen
c94606e27a Data sent to server with /RAWQUOTE didn't show up properly in rawlog unless
it ended with \r\n.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2068 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 23:29:18 +00:00
Timo Sirainen
5ee08ed3c9 Added ctcp_register() and ctcp_unregister() for registering CTCP commands.
It's used by CTCP CLIENTINFO to print list of known CTCP commands. Also
added CTCP USERINFO command + /SET ctcp_userinfo_reply.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2063 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 21:36:11 +00:00
Timo Sirainen
1fdd933d25 If you did quickly /WHOIS existing_nick, /WHOIS not_existing_nick, irssi
printed one extra "End of WHOIS" message in screen.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2057 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 17:41:10 +00:00
Timo Sirainen
034e75ee19 Stop the redirection if we receive unknown event and it's not numeric.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2052 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 15:07:03 +00:00
Timo Sirainen
0abb62a471 When destroying data used from server in "server disconnected" signal, set
the data to NULL as well, the server record is still used after the signal
is finished (the channels it uses are destroyed, which may trigger scripts
etc.)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2046 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 10:55:14 +00:00
Timo Sirainen
94ad289e7c added +q channel mode to HAS_MODE_ARG_ALWAYS() list.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2043 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-17 15:59:33 +00:00
Timo Sirainen
000328d9e6 329 event reply for MODE #channel shouldn't go to "chanquery abort", but
we'd rather just want to print it.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2042 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-17 14:20:17 +00:00
Timo Sirainen
93d69f50ee Forgot to update this for server_redirect_register()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2039 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-17 00:23:21 +00:00
Timo Sirainen
1c29219d1c Added support for "optional events" in redirection. They're checked right
after stop-signal is received. This fixes /WHOIS non_existing_nick in OPN,
and also hides the Channel created-event when joining to channel that's
received in several networks after /MODE #channel.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2037 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-17 00:07:24 +00:00
Timo Sirainen
7545f463bd Allow replies to redirections come in a bit different order than expected -
default is if 3 replies to other redirections are received, abort the
expected one. This is because some IRC bouncers reply to some of the
commands (PING) themself immediately.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2036 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-16 23:42:09 +00:00
Timo Sirainen
ec0f2f4706 Added "your not chanop" failure to I-mode as well.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2032 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-16 14:49:17 +00:00
Timo Sirainen
8ce1d773aa If the last query fails we should make the channel synced.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2031 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-16 14:39:33 +00:00
Timo Sirainen
0d919f7439 ISON and USERHOST redirections were registered wrong.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2030 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-16 14:18:26 +00:00
Timo Sirainen
5563a8f203 /QUOTE and /RAWQUOTE should work as soon as the socket is connected.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2020 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 18:37:33 +00:00
Timo Sirainen
0b4db7b17a print failed redirections to rawlog even if there's no failure signal.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2019 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 16:29:25 +00:00
Timo Sirainen
a110b05a0c /WHOIS nick_who_was_in_irc showed only the first and last lines of /WHOWAS.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2018 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 16:18:11 +00:00
Timo Sirainen
c6302cd6e7 Lag checking fixes - should work fine again.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2016 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 13:47:51 +00:00
Timo Sirainen
89542ef942 Still some syncing fixes. Don't loop forever now if we don't find the reply
to mode/who.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2009 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14 23:30:21 +00:00
Timo Sirainen
3101437f75 Report failed redirections in rawlog.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2008 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14 23:23:00 +00:00
Timo Sirainen
c0bf62ba44 Redirect parameters should be matched case-insensitively
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2007 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14 22:43:48 +00:00
Timo Sirainen
f3f624d6ec Yet another bugfix for channel sync.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2006 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14 21:56:09 +00:00
Timo Sirainen
2c68c8b7db Channel syncing rewrites.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2005 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14 21:48:24 +00:00
Timo Sirainen
e66ec6cf8b Redirection fixes - added count parameter.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1999 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-12 22:15:04 +00:00
Timo Sirainen
65f92c5e9d added server_redirect_peek_signal() function.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1988 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11 22:44:47 +00:00
Timo Sirainen
571f3acaf8 "mode e" was registered twice - the second one should have been "mode I".
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1984 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11 20:27:46 +00:00
Timo Sirainen
5e1993346e Redirection fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1983 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11 20:20:43 +00:00
Timo Sirainen
f044505694 /WHOIS unknown_nick printed the "there was no such nickname" message
as well as the "there is no such nick" message.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1981 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11 19:02:32 +00:00
Timo Sirainen
850cf993eb Moved rewritten server redirection code from core to irc. This new code
should be able to do the redirecting a lot more error-proof. Changed
lag-checking to use PINGs instead of NOTIFYs. This breaks scripts using
redirection. Hopefully this doesn't break too much things in irssi :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1980 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11 18:59:19 +00:00
Timo Sirainen
6a82e806b4 Moved $(GLIB_CFLAGS) after -I includes, to make sure our own .h files get before possibly identically named headers in the glib's include directory.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1975 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-05 14:48:03 +00:00
Timo Sirainen
f4e98cc936 Looks like I went and broke /PART accidentally..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1970 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-04 18:11:59 +00:00
Timo Sirainen
dd04f35cc6 Stupid me, remembered wrong how PARAM_FLAG_OPTCHAN worked. This broke /CTCP,
/NCTCP and /NOTICE for non-channel targets. Back to old code, except "*" is
now treated as active target.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1969 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-04 14:36:51 +00:00
Timo Sirainen
c5e2b28d2c Added missing irc-commands.h
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1968 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03 22:52:49 +00:00
Timo Sirainen
e69f081127 * works now as active channel with /NOTICE, /CTCP and /NCTCP.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1967 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03 18:36:40 +00:00
Timo Sirainen
67a9ad0598 /OP, /DEOP, /VOICE and /DEVOICE fixed not to print glib error if used in
non-channel window.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1963 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03 13:31:33 +00:00
Timo Sirainen
f354fe54c7 Moved some stuff from irc to core. Added command_bind_proto() function to
bind protocol-specific commands. Added #define command_bind_irc() for easier
access. CMD_IRC_SERVER(server) check should be done at the beginning of each
command requiring IRC server as active server, it handles it correctly the
cases when it is not. Did some other cleanups as well.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1955 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-02 01:05:14 +00:00
Timo Sirainen
95b94ed83c server->ischannel(char *) -> server->ischannel(SERVER_REC *, char *). Added
#define server_ischannel(server, data) and it's now used everywhere..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1954 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-01 22:52:23 +00:00
Timo Sirainen
f6fea30ff5 Check that it's IRC-channel we're destroying before doing any IRC-specific
deinitialization.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1952 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-01 21:04:26 +00:00
Timo Sirainen
6bc16fc0ed added $cumode_space expando. Like $cumode, but gives " " if there's no mode.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1947 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-30 12:12:25 +00:00
Timo Sirainen
b2fdbd64c6 Don't print glib errors when parting a channel which isn't synced yet.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1904 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-23 21:28:16 +00:00
Timo Sirainen
d599f7bb99 /UNBAN -first | -last options added. Patch by fuchs.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1898 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-23 16:01:53 +00:00
Timo Sirainen
1256621041 Added reference counter to SERVER_CONNECT_REC. Since it's being moved around
a lot in reconnects etc. this should make it easier to track when it's
supposed to be destroyed. Hopefully fixes a crash I assume is related to
this but couldn't find..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1880 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 13:59:07 +00:00
Timo Sirainen
1b64509ae2 quitmsg_is_split() updated to check that top-level domains must be 2+ chars
and contain only alphabets.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1878 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 11:49:17 +00:00
Timo Sirainen
feaee35653 Channels weren't synced if you joined multiple channels at once and one of
the chennels couldn't be joined for some reason.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1877 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 11:24:24 +00:00
Timo Sirainen
b7e41fe358 /DEVOICE * should devoice operators having voices too.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1840 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-15 12:53:20 +00:00
Timo Sirainen
44270041c2 Irssi lost channel key for secret/private channels after join.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1835 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 13:33:22 +00:00
Timo Sirainen
3e3f9ac223 $usermode's "user mode changed" signal had wrong argument check (server vs.
window) so it didn't really detect mode changes.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1826 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 09:48:30 +00:00
Timo Sirainen
d46db0aac2 When using /SET hostname ipv6:address, replace the ':' char with '_' so it
won't break the USER command which is sent to server at connect.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1806 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-20 17:56:33 +00:00
Timo Sirainen
2655c1ffe0 ..the same fix..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1797 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-13 13:08:25 +00:00
Timo Sirainen
8e6f743893 Don't crash if the IRC server doesn't print your nick in /NAMES list after
join.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1796 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-13 13:06:19 +00:00
Timo Sirainen
eb9f1eb985 autolog: target name is now always lowercased with irc protocol.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1789 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-11 17:47:31 +00:00
Timo Sirainen
41df7da60e Added option /SET channel_sync - if disabled irssi disables the channel
syncing entirely. This breaks /BAN and probably something else too. Just a
temporarily kludge until I fix this properly (on demand /USERHOST at /BAN
time, etc.).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1786 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-11 15:45:42 +00:00
Timo Sirainen
1cb3f94eeb Use only the first word from username when sending it to server.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1776 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-06 13:12:52 +00:00
Timo Sirainen
0d5e569195 Some internal changes how /SERVER command works. Added /SERVER PURGE
[<target>] command. The channel output is purged at /PART if the output
queue is larger than 10.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1759 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 13:19:06 +00:00
Timo Sirainen
295d16536e quitmsg_is_split() fix - the hosts must contain the domain part now (ie.
"word1 word2" isn't a netsplit)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1758 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 13:17:11 +00:00
Timo Sirainen
1de695ae1a Rewrote quitmsg_is_split(). A bit faster now and doesn't match to quit
messages like "foo. bar."


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1756 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 11:53:08 +00:00
Timo Sirainen
803d805016 Module loading updates - /LOAD shows now also the statically loaded modules.
You can't /LOAD the same module twice. Syntax changed to /LOAD <module>
[<submodule>], /UNLOAD <module> [<submodule>].

NOTE: all modules now need to call register_module() in their init()
function.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1748 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 00:41:59 +00:00
Timo Sirainen
85862082b3 max_query_chans set to 1 by default. Set to 10 in networks where it's known
to work.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1745 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-13 14:14:09 +00:00
Timo Sirainen
072a4c774f If we receive INVITE for a channel that is added with /CHANNEL ADD -auto,
join it immediately.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1724 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 17:47:54 +00:00
Timo Sirainen
59a1a4d649 /BAN [-type] -> /BAN [-normal | -user | -host | -domain | -custom <type>].
Added ban type "User"


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1722 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 16:22:01 +00:00
Timo Sirainen
316bd7d142 Moved awaylog to core.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1629 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-15 14:07:48 +00:00
Timo Sirainen
79d1d7089a Added --home and --config command line parameters to irssi to specify
locations for ~/.irssi and ~/.irssi/config


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1626 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-15 00:39:48 +00:00
Timo Sirainen
b500815724 Cut the messages sent to rawlog to 510 chars too.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1617 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-14 18:52:53 +00:00
Timo Sirainen
5120660bf5 Removed the "domain is 2 or 3 chars" check from quitmsg_is_split() since
Undernet nowadays prints "*.net *.split" quit message for netsplits and
the netsplit quit message can't be faked anyway with current IRC servers.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1598 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-29 23:14:44 +00:00
Timo Sirainen
f98b77c4a2 Don't reply to CTCP PINGs longer than 100 bytes (see the comment).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1578 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-27 21:26:33 +00:00
Timo Sirainen
31794553e6 /NICK: don't bother trying to change the nick to the one you already have
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1577 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-27 21:20:26 +00:00
Timo Sirainen
f4e65d6222 Don't send unaway to server if we're not away.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1572 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26 22:33:43 +00:00
Timo Sirainen
af4d6bebe3 Added $cumode expando which works like $P, but prints voices/halfops also.
Changed statusbar to use $cumode. Patch by fuchs.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1567 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26 19:27:26 +00:00
Timo Sirainen
7c9438c172 channel_set_singlemode() : don't do anything if you're not channel op/halfop
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1555 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-12 00:08:14 +00:00
Timo Sirainen
9cef658661 max_cmds_at_once and max_query_chans weren't saved between reconnects to
server.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1545 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-10 22:52:54 +00:00
Timo Sirainen
3609f6f243 Added support for bahamut @+#channel notices. Removed notice_public_ops
format, notice_public is just fine if the channel just contains @ or @+
at the beginning.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1538 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-04 19:50:16 +00:00
Timo Sirainen
24e88a6772 irc_parse_prefix() didn't work properly if user name had ! characters.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1509 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-21 23:14:04 +00:00
Timo Sirainen
32902afcd0 new /KICKBAN code crashed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1497 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-14 22:23:51 +00:00
Timo Sirainen
27ceadbff3 /UNBAN now supports unbanning multiple bans with ban# (/unban 1 4 6)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1496 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-14 17:35:24 +00:00
Timo Sirainen
1f23c05ee7 CHANNEL_REC->get_join_data() - Returns the information needed to call
SERVER_REC->channels_join() for this channel. Usually just the channel name,
but may contain also the channel key.

If we receive PART-message to channel that hasn't received a JOIN yet,
don't destroy the channel. It's probably because we did quickly /PART +
/JOIN.

Moved /CYCLE to fe-common/core, it doesn't close the window for the cycled
channel anymore if you had autoclosing on.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1484 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11 16:08:48 +00:00
Timo Sirainen
7a1e526391 MODE +k handler was buggy
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1483 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11 16:06:45 +00:00
Timo Sirainen
e3b33796ff Moved PARAM_FLAG_OPTCHAN handling to core. Removed support for adding own
command parameter parsers, it's probably useless now that opt.channels are
in core.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1482 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11 15:48:09 +00:00
Timo Sirainen
4a2c02a6af /SET kick_first_on_kickban for /KICKBAN and /KNOCKOUT - patch by
Jakub Jankowski <shasta@irc.pl>


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1469 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11 12:00:23 +00:00
Timo Sirainen
88bfb3bf1e support for +O mode
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1465 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-09 14:37:48 +00:00
Timo Sirainen
53474a2163 "ban ..." signals didn't send channel info
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1457 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-25 04:10:19 +00:00
Timo Sirainen
c2483eff4e CTCP version reply has now $sysarch by default
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1455 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-20 20:02:29 +00:00
Timo Sirainen
ae6d2014e5 added /SET proxy_password
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1414 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-20 23:24:45 +00:00
Timo Sirainen
93141c3a86 /RAWQUOTE: like /QUOTE, but don't add line feed after the command, and don't
truncate line to 512 bytes.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1410 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-18 23:00:53 +00:00
Timo Sirainen
ebe99f825c quit_message setting moved from irc to core
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1398 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-16 22:14:21 +00:00
Timo Sirainen
cd9c127aab /NICK could have changed nick to some other nick than we specified
(/NICK nick!blah -> nick)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1394 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-15 17:39:23 +00:00
Timo Sirainen
484f62f757 added server_change_nick() function for servers.[ch]. Lots of fixes for
support to multiple identical nicks. Should work now properly :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1351 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-04 10:30:41 +00:00
Timo Sirainen
cf376ba806 Send "chat protocol deinit" signal when protocol is being
deinitialized. Servers and reconnections are automatically disconnected
for the protocol when it's being deinitialized.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1341 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-04 03:25:21 +00:00
Timo Sirainen
d0a4404bdf /NAMES: -ops -halfops -voices -normal options added. /NAMES without
parameters now prints nicklist in active channel, /NAMES ** shows all
nicks in all channels.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1332 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-04 00:14:00 +00:00
Timo Sirainen
4f2be94115 /BANTYPE -> /SET ban_type. /BAN: -type option added to override default
ban type.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1318 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03 20:48:23 +00:00
Timo Sirainen
13712d83b2 /IRCNET ADD didn't work
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1279 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-22 05:19:11 +00:00
Timo Sirainen
b8375d471f Connection updates: moved /SERVER and /CONNECT to core from irc.
Several other related multiprotocol updates.

Removed /SILCSERVER from SILC, /CONNECT and /SERVER should work
properly now. Rejoining channels after reconnection works.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1245 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-19 02:15:15 +00:00
Timo Sirainen
6a469c46bb Support for multiple identical nicknames.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1241 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-18 22:46:25 +00:00
Timo Sirainen
be6ba53fa4 Config file: ircnets -> chatnets, added type = "chat protocol" to
chatnet config. Moved reading chatnets to core. Lots of other
multiprotocol updates.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1237 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-17 19:44:22 +00:00
Timo Sirainen
8938a0f42b /CONNECT, /SERVER: added -4 and -6 options for specifying if we should
connect to IPv4 or IPv6 address of the server. If -host or /SET
hostname is set irssi determines from it if it should use IPv4 or v6.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1192 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-09 21:26:50 +00:00
Timo Sirainen
6358c2d627 #include "irc-channels.h"
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1191 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-08 16:54:52 +00:00