licence => "GPLv2",
changed => "02/03/2009",
);
-
+# Output a few extra messages to the status window to help with
+# any errors that might happen.
+my $debug = 0;
# Hash to store our temporary ignores in.
my %quits;
if (process_tag($tag) == 0) {
return 0;
}
- #Irssi::print "Processing JOIN $tag: $nick $addr";
+ Irssi::print "Processing JOIN $tag: $nick $addr" if $debug;
# If the joining nick is in our quit hash, don't show the join.
if ($quits{$nick} == 1) {
Irssi::signal_stop();
if (process_tag($tag) == 0) {
return 0;
}
- #Irssi::print "Processing QUIT $tag: $nick $addr $reason";
+ Irssi::print "Processing QUIT $tag: $nick $addr $reason" if $debug;
# If the quit message is registered, add the person to our quit hash and abort the signal.
if ($reason eq "Registered") {
$quits{$nick} = 1;
if (process_tag($tag) == 0) {
return 0;
}
- Irssi::print "Processing MIM $tag: $channel $nick $addr $mode";
+ Irssi::print "Processing MIM $tag: $channel $nick $addr $mode" if $debug;
my $servermask = Irssi::settings_get_str('quakequit_servermask');
# If the server is setting the mode, the $nick will be the server mask and $addr will be empty.
if ($nick eq $servermask) {
+ Irssi::print "$nick == $servermask" if $debug;
# break the target nicks away from the modes set on them.
my ($modes, @targets) = split / /, $mode, 2;
# If the nick exists in the hash and the mode setter is *.quakenet.org, signal_stop.
foreach my $target (@targets) {
+ Irssi::print "Processing $target" if $debug;
if ($quits{$target} == 1) {
+ Irssi::print "Found $target in target list, stopping signal" if $debug;
Irssi::signal_stop();
return 0;
}
Irssi::settings_add_str('quakequit', 'quakequit_networks', 'QuakeNet');
Irssi::settings_add_str('quakequit', 'quakequit_servermask', '*.quakenet.org');
# Signals to grab
-Irssi::signal_add_last('message irc mode', 'message_irc_mode');
+Irssi::signal_add_first('message irc mode', 'message_irc_mode');
Irssi::signal_add_last('message join', 'message_join');
Irssi::signal_add_last('message quit', 'message_quit');