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

577 Commits

Author SHA1 Message Date
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
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
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
1cd033943a Added missing module_register() calls.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1749 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 00:43:50 +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
7a9a50f70b get the version from IRSSI_VERSION, not VERSION. #include "signals.h" was
missing from proxy.c


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1649 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-25 20:07:10 +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
7b4e1cb8a1 rm -f the libirc_proxy.a before ln -s.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1621 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-14 19:16:53 +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
a5a277c94d Compiles now statically to irssi with --with-modules=proxy
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1612 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-13 13:09:58 +00:00
Timo Sirainen
3cea29ae82 Makefile fixed to use module directory again. If /SET irssiproxy_ports has
'*' as server tag, it will match for any of the servers (useful if you're
only using one). Fixed a crash if client sent a request to server and quit
before the reply was received.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1608 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-10 19:10:37 +00:00
Timo Sirainen
e72780d4d6 DCC_REC was missing MODULE_DATA_INIT() / .._DEINIT()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1602 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-30 10:11:33 +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
fc3918b0f0 dcc, flood and notifylist aren't compiled as loadable modules anymore,
no-one wants that and irssi crashes in AIX because of it.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1530 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-01 18:39:45 +00:00
Timo Sirainen
da9d55f403 /SET dcc_own_ip for specifying own IP to use in DCC requests
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1512 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-22 00:16:38 +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
f3f8eb620a added "dcc request send" signal - irssi now prints "DCC CHAT/SEND request
sent to nick".


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1472 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11 12:55:18 +00:00
Timo Sirainen
cb28685574 "dcc error file not found" -> "dcc error file open". Print the actual error
message based on errno, don't just assume the file wasn't found.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1471 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11 12:43:59 +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
de3116ef54 fixed potential crash
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1459 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-01 11:37:50 +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
eba784876e fixes, hopefully works correctly finally :) patch by fuchs.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1420 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-24 12:45:04 +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
f3ccfa567d dcc_autoget_lowports -> dcc_autoaccept_lowports since dcc chat uses it too
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1412 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-20 16:35:00 +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
ae68205a5b bugfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1392 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-15 16:11:09 +00:00
Timo Sirainen
9f9490eb8b Don't cast time_t to int. Don't go playing with memory you just free'd. Some
other cleanups


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1374 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-10 18:22:58 +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
62bd2045bb union { .. } addr removed from IPADDR - it hasn't been actually used
for a long time..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1339 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-04 03:00:35 +00:00
Timo Sirainen
4c7b07ed3f IPv6 fixes. Everything now keeps both v4 and v6 addresses in memory and
at connect() time it's decided which one should be used.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1334 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-04 01:47:13 +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
c5cccfcdaa fe-common/irc/flood removed. Some autoignore / ignore -time updates.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1330 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03 23:27:07 +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
51c1fee749 fixed some signed/unsigned issues
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1304 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-28 19:26:21 +00:00
Timo Sirainen
95fb3f5623 /SET autoignore_levels -> autoignore_level. Fixed a memory leak.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1285 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-22 10:52:01 +00:00
Timo Sirainen
fc17069cec Autoignore fixes by fuchs (not tested, hope it works ;)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1281 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-22 06:09:48 +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
db4e159870 DCC CTCP replies weren't handled properly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1274 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-21 05:11:26 +00:00
Timo Sirainen
19dff227d8 Removed /SET dcc_block_size and /SET dcc_fast_send - fast send is now
always used and dcc_block_size is useless with it.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1250 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-19 03:40:06 +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
e4f7d55ce9 DCC cleanups - split DCC_REC to CHAT|GET|SEND_DCC_RECs. Plugins should
now be able to add whatever new DCC types.

Nick changes affect DCC chats. /WHOIS without parameters works properly
in DCC CHAT queries.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1194 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-10 02:02:26 +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
Timo Sirainen
1dfd86fe95 /SET opermode - set this mode when you get ircop status.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1190 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-08 09:24:25 +00:00
Timo Sirainen
6ad5d24e0d DCC RESUME, DCC ACCEPT: we might have crashed with invalid parameters.
Some other "cleanups".


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1178 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-03 17:38:01 +00:00
Timo Sirainen
e387516951 Nicklist updates so that protocol specific xxx_NICK_REC can be used
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1177 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-02 22:10:20 +00:00
Timo Sirainen
56abbcd2e3 Ignoring updates. Added support for nickmatch cache. One ignore can't
have both except and normal levels. Nick ignoring checks now with both
old and new nicks.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1155 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-28 07:22:22 +00:00
Timo Sirainen
443ba1a97d nickliset_set_host() for setting host, sends signal "nicklist host changed".
Changed "nick gone|serverop" -> "nicklist gone|serverop changed"


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1137 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-21 00:49:52 +00:00
Timo Sirainen
ce6e5a12f9 DCC cleanups - half rewrite. New features: file names with spaces work
properly, you can have multiple dcc chats with same people (or more
useful, same nick in different ircnets), /DCC CHAT|GET|RESUME with no
arguments accepts the last request, notifies if dcc request was sent to
channel, warns about connecting to lowports, /SET dcc_autoget_lowports
specifies if autogetting should work with lowports, complains of
invalid dcc ctcps instead of ignoring. And fixed /SET dcc_autorename
OFF which didn't work before.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1135 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-18 02:30:59 +00:00
Timo Sirainen
269a0499b1 /WHOIS without parameters in query does now same as /WII <queried nick>
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1130 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-17 20:28:42 +00:00
Timo Sirainen
93ba91b8ed Added my_asctime()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1114 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-14 18:16:39 +00:00
Timo Sirainen
1a3c700838 Some signed/unsigned warnings removed. Don't call fe_exec_init/deinit in win32
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1104 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-11 10:15:34 +00:00
Timo Sirainen
348060073d cmd_param_error -> cmd_return_error
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1103 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-11 09:25:16 +00:00
Timo Sirainen
3f1b28ead9 item_get_dcc(void *item) -> WI_ITEM_REC *item
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1088 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-07 09:26:45 +00:00
Timo Sirainen
2faf78fe7c ban -> bans, just like in .c file :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1087 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-07 08:44:02 +00:00
Timo Sirainen
596ef586b2 Added keyboard_entry_redirect() function to keyboard.[ch] which sends
the signal "gui entry redirect" signal. Added possibility to keep the
entry hidden.

/OPER [<nick> [<password>]] - syntax changed. If password isn't given,
it's asked.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1063 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-04 18:01:51 +00:00
Timo Sirainen
d844880515 /UNBAN <ref#> works. /BAN list shows reference numbers.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1062 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-04 17:28:26 +00:00
Timo Sirainen
69f3b3f159 /LIST: don't require -yes option if there's 1000 channels or less.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1057 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-04 08:49:48 +00:00
Timo Sirainen
be4b473be5 /SET dcc_autoresume - like /SET dcc_autoget, but resume the files if
they're already found. Also fixed file transfer being stuck when
resuming file that was already fully sent (happened with both send and
get). /dcc close was also broken.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1051 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-02 16:14:19 +00:00
Timo Sirainen
c2ea82642d Some query changes. They should now work properly with /SAVEWINDOWS
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1043 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-01 17:13:55 +00:00
Timo Sirainen
2ae679be08 added "message own_public" and "message own_private" events that are
sent when /msg command is used. this way we don't need to parse the
/msg's options everywhere. also efnet @#channels support works now better.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1041 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-01 16:57:25 +00:00
Timo Sirainen
acf60a729c small extra checks to /whois redirect checking
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1039 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-01 14:42:22 +00:00
Timo Sirainen
4a33801669 Added/moved several "typedef struct _XXX XXX;" to common.h so that
they're known to all files and I don't need those stupid "void *xxx"
anymore just to avoid useless #include. Header files themselves don't
either include others as often anymore.

Added channel->ownnick to point to our NICK_REC in channel's nicks.
Gives a minor speedup in few places :)

Moved completion specific lastmsgs from channel/server core records to
fe-common/core specific records. Also changed the nick completion logic
a bit so it should work better now. Removed
completion_keep_publics_count setting, but changed the meaning of
completion_keep_publics to same as _count was before. Nick completion
doesn't have any time specific code anymore.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1034 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-01 07:45:54 +00:00
Timo Sirainen
21f9da6092 When joining to !channel because of "407 duplicate channel", it just
means that there's some server sync problems. rejoining after a while
should work again.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1033 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-01 04:33:27 +00:00
Timo Sirainen
46a427b410 server->cmd_last_split wasn't used anymore, removed code related to it.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1024 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-28 17:23:06 +00:00
Timo Sirainen
ae030c4302 Fix for handling duplicate channels
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1018 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-22 13:02:33 +00:00
Timo Sirainen
06a6428d83 security fixes from 0.7.97.2
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1017 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-19 17:48:42 +00:00
Timo Sirainen
bbc33bff5e /SET prompt, /SET prompt_window - Specifies the text in prompt.
'prompt' is used when channel or query is active in window and
'prompt_window' is used with empty windows.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1005 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17 07:39:22 +00:00
Timo Sirainen
aac80846b8 Settings are now stored in module-specific blocks. Irssi complains
about all unknown settings that are found inside those blocks.

Left backwards compatibility kludge which should be removed in 0.7.98.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1004 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17 05:44:45 +00:00
Timo Sirainen
810584803b /kickban and /knockout now accepts multiple nicks separated with commas.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1000 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17 02:59:16 +00:00
Timo Sirainen
fc491c5f8d Some minor query fixes. Nick changes are also detected by checking if
query with another nick from same address if found.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@999 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17 02:20:22 +00:00
Timo Sirainen
4ea69f3059 Blocking sockets (win32) shouldn't block irssi entirely now.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@991 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-15 19:44:27 +00:00
Timo Sirainen
f6efe1cad8 added $usermode expando
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@990 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-10 05:55:15 +00:00
Timo Sirainen
8d98e80a6b -querychans option for servers and ircnets which specifies how many
channels to query in one line with MODE/WHO commands after joined to a
number of channels. Default is 10 which works usually, with some very
stupid servers (just found one) this has to be set to 1 however.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@981 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-09 19:12:49 +00:00
Timo Sirainen
2c0271412d automatic /whowas in /whois crashed (after server <-> data change)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@978 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-07 19:14:27 +00:00