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

476 Commits

Author SHA1 Message Date
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
fe8971ac8f Send NICK change before 001 request so that ircII also knows our real nick.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2211 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 15:58:58 +00:00
Timo Sirainen
cb6e1286cd Several fixes to work better with non-irssi clients, also fixed a potential
crash if sending a wrong PASS.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2210 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 15:39:30 +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
6e2b0d41d9 Treat all WHOIS requests as remote.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2203 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-06 23:05:08 +00:00
Timo Sirainen
9dd46372ff Allow sending USER before NICK when logging in.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2198 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-06 15:11:08 +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
84abc35a81 Fixed a memory leak and a crash when notifylist_check_join() was called with NULL realname.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2185 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03 19:51:00 +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
e6f006009f /SET dcc_own_ip now affects also which interface irssi uses to connect to
outgoing DCC connections.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2150 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 17:35:47 +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
5bcb8251f5 Ignoring CTCPs shouldn't ignore DCC CTCPs, we're checking DCC level for
ignoring them now.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2094 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 20:16:24 +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
65c9a361ab If /SET dcc_upload_path is empty, we should use the current directory, not
root directory.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2074 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 02:46:26 +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
100d92dff0 Reply to PINGs ourself if destination was proxy's address, our own nick or
no destination at all.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2048 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 12:35:19 +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
25d0d40d5a Small optimization for whois-redirecting.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2012 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 00:08:26 +00:00
Timo Sirainen
da6170d4d7 WHOIS command should be sent after redirecting, not before..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2010 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14 23:37:39 +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
09ca671577 Fixed to work with new redirection code. Also don't set the mode to +(null)
if there's no server mode.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1986 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11 22:41:03 +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
585527b979 compile fix - patch by manoj@io.com
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1956 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-02 14:53:39 +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
9dc3176efd just some extra check - might fix some crash..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1892 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-22 12:19:27 +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
b9cdd10a86 format string exploit found & patch by cph@cph.demon.co.uk
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1849 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-19 11:37:13 +00:00
Timo Sirainen
40edf12dca Actions are now transferred correctly, own messages in main irssi are
transferred now to clients. Patch by ganesh@earth.li.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1848 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-19 11:28:56 +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
c988af4150 Added MODULE_DATA_UNSET() macro and started using it. Just to make sure we
don't try to access free'd data.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1818 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-02 07:55:51 +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
20e26554cd The new /SET dcc_port range didn't work properly..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1795 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-12 12:19:59 +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
db2a25d22d /SET dcc_port accepts now port range (eg. "10000 20000")
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1784 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-10 20:21:05 +00:00