* Parse Numeric:438.

* Rewrote how we parse changing the bot's nick.
This commit is contained in:
Elijah Perrault committed 2011-01-21 16:28:39 -07:00
1 parent 159600b669
commit 27fbbd9208
3 files changed
+31 -7

No files matched your search

+8 -1
View File
@@ -18,6 +18,13 @@ sub cjoin
my ($svr, $chan) = @_;
Auto::socksnd($svr, "JOIN $chan");
unless (defined $Parser::IRC::botchans{$svr}) {
@{ $Parser::IRC::botchans{$svr} } = ($chan);
}
else {
push(@{ $Parser::IRC::botchans{$svr} }, $chan);
}
}
# Part a channel.
@@ -72,7 +79,7 @@ sub nick
Auto::socksnd($svr, "NICK $newnick");
$Parser::IRC::botnick{$svr} = $newnick;
$Parser::IRC::botnick{$svr}{newnick} = $newnick;
}
# Quit IRC.