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

473 Commits

Author SHA1 Message Date
Timo Sirainen
495501c284 Added /SET channels_rejoin_unavailable to disable automatic rejoining when channel is unavailable. Efnet is stupid and uses the same numeric for joining juped channels and k-lines you after trying to constantly join it.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3062 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-20 14:37:56 +00:00
Timo Sirainen
6825f1e67e GC fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3056 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-10 20:30:03 +00:00
Timo Sirainen
bb55d3ff4d A few fixes to make irssi work with garbage collected GLIB.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3055 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-10 17:31:26 +00:00
Timo Sirainen
13eb240ece mode +o nick -o nick2 did +o for the nick2 too
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3052 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-09 21:54:03 +00:00
Timo Sirainen
e51f4e96fe Don't break if nick is twice in names list (never is with non-broken
servers).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3047 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-07 20:53:50 +00:00
Timo Sirainen
67d4550f21 Irssi didn't set the internal away reason when reconnecting to server while
being away. Patch by c0ffee.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3040 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-03 22:54:44 +00:00
Timo Sirainen
df7ccce8ec Some compiling fixes found by -Wall in perl dirs..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2990 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-07 17:40:05 +00:00
Timo Sirainen
ef4bb2619d Support for /MODE #chan +o nick1 +o nick2 style grouping.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2981 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-31 17:24:49 +00:00
Timo Sirainen
f42df98fc8 "nick mode changed" now gives changed mode/type as parameters.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2972 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-26 18:52:45 +00:00
Timo Sirainen
5c6bbf6cc4 Don't bother aborting /OP, /VOICE, etc. just because we're not chanop/ircop.
That check was just broken with some servers where opping would be possible
without either.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2960 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-15 22:11:26 +00:00
Timo Sirainen
42d4598e06 /MSG !channel is now expanded to full !12345channel
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2944 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-14 11:47:10 +00:00
Timo Sirainen
40f2e1caf5 Make sure two urls aren't thought of as netsplit
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2943 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-14 11:43:18 +00:00
Timo Sirainen
01c9fddeba Less kludgy way to handle /SET skip_motd. Works now with laggy servers.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2937 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-10 01:55:24 +00:00
Timo Sirainen
525773aa80 If reconnection was aborted by trying to reconnect to another server, the
channels and usermode wasn't restored.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2934 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-09-30 21:43:46 +00:00
Timo Sirainen
fd6fe24317 a bit more fixes for +k updating
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2906 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-27 19:46:48 +00:00
Timo Sirainen
1faed99b33 Don't update channel key from 324 numeric, some servers send channel key as
"*" in it which breaks irssi.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2905 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-27 19:42:23 +00:00
Timo Sirainen
746ae09050 wait a bit longer before sending massjoin signal. also added a comment how
it's supposed to work.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2904 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-27 12:45:09 +00:00
Timo Sirainen
a6c4e47376 A few missing parts from SSL patch.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2891 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-26 19:40:04 +00:00
Timo Sirainen
1b8e6d2e5b Don't crash if someone msgs you without host address (eg. dircproxy). Fix by
Antti.Siiskonen@tut.fi


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2886 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-26 15:12:32 +00:00
Timo Sirainen
0b12cfe47b When checking for autojoin-on-invite channels, also check the short !channel
names.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2879 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-22 20:35:43 +00:00
Timo Sirainen
3303db4e87 Added support for 439 numeric ("Target change too fast") which may tell that
join was aborted.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2878 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-21 17:26:40 +00:00
Timo Sirainen
d5ded8f977 Changed CTCP handler to remove the later \001 only if it was at the end of
the line, so you couldn't hide text by typing eg. \001foo\001hidden text.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2870 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-05 01:38:49 +00:00
Timo Sirainen
648a43ce14 updated dancer's channel forwarding support - using +f channel mode now, and
we won't print whois_modes anymore after forwarding.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2854 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-06-13 21:59:25 +00:00
Timo Sirainen
80b8d0628a $X expando didn't check if server type was irc properly, and crashed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2851 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-06-10 20:56:24 +00:00
Timo Sirainen
d1e55d91b7 "/MODE !channel" should send the full name to server
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2838 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-06-05 12:20:46 +00:00
Timo Sirainen
a6d6ade680 event_cannot_join() - changed check from NAMES got -> JOIN got, so the
channel isn't destroyed if join is received. dircproxy sent us 477 with
+channels before names list, and irssi aborted the join.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2827 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-26 17:50:55 +00:00
Timo Sirainen
4aa0b9111e /UPGRADE was broken, changed again the server connection code.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2821 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-20 04:12:12 +00:00
Timo Sirainen
6f7485b8fa net_connect*() contains now error parameter, so it can be used to properly
check the errno if connect() fails.

Added support for connecting to named UNIX sockets. Some cleanups with
session handling / server connecting as well.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2819 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-19 14:43:16 +00:00
Timo Sirainen
7437bbea5f When reconnected to server, send the away message directly to server instead
of calling /AWAY, so the away is set only to that one server..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2818 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-19 12:59:59 +00:00
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