1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00
Commit Graph

372 Commits

Author SHA1 Message Date
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