diff options
author | Timo Sirainen <cras@irssi.org> | 2001-11-17 00:07:24 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-11-17 00:07:24 +0000 |
commit | 1c29219d1cba8250d104af5367bcc4d5c585609c (patch) | |
tree | f332e3f5989bd58f41fc53f23fb4eb0aa4c6a2d5 /src/perl/irc | |
parent | 7545f463bd279359a56521ff6114634dc4d0ea6f (diff) | |
download | irssi-1c29219d1cba8250d104af5367bcc4d5c585609c.zip |
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
Diffstat (limited to 'src/perl/irc')
-rw-r--r-- | src/perl/irc/Server.xs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/perl/irc/Server.xs b/src/perl/irc/Server.xs index df04e181..db4f7ced 100644 --- a/src/perl/irc/Server.xs +++ b/src/perl/irc/Server.xs @@ -81,16 +81,18 @@ ctcp_send_reply(server, data) MODULE = Irssi::Irc::Server PACKAGE = Irssi::Irc::Server PREFIX = server_ void -server_redirect_register(command, remote, timeout, start, stop) +server_redirect_register(command, remote, timeout, start, stop, opt) char *command int remote int timeout SV *start SV *stop + SV *opt CODE: server_redirect_register_list(command, remote, timeout, register_hash2list(hvref(start)), - register_hash2list(hvref(stop))); + register_hash2list(hvref(stop)), + register_hash2list(hvref(opt))); void server_redirect_event(server, command, count, arg, remote, failure_signal, signals) |