* Use nick() for initial NICK.

* Parse Numeric:433.
* Added %botnick for storing the bot's nick.
* Renamed mode() to cmode() in API::IRC's @EXPORT_OK
This commit is contained in:
Elijah Perrault committed 2011-01-20 20:59:50 -07:00
1 parent ccc66f5a4e
commit 43bcb86d90
4 files changed
+18 -6

No files matched your search

+3 -1
View File
@@ -9,7 +9,7 @@ use warnings;
use Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(cjoin cpart mode privmsg notice quit);
our @EXPORT_OK = qw(cjoin cpart cmode privmsg notice quit nick);
# Join a channel.
@@ -71,6 +71,8 @@ sub nick
my ($svr, $newnick) = @_;
Auto::socksnd($svr, "NICK $newnick");
$Parser::IRC::botnick{$svr} = $newnick;
}
# Quit IRC.