Merge branch 'indev' of github.com:Xelhua/Auto into indev

This commit is contained in:
Elijah Perrault committed 2011-01-19 23:20:29 -07:00
commit c5f5004c94
2 files changed
+10 -2

No files matched your search

+2 -1
View File
@@ -3,7 +3,8 @@ Auto IRC Bot 3.0: Change Log
3.0 Indev
==================================================================
* Added support for PASS.
* Added mode subroutine to API::IRC.
* Added PASS support.
* Bug fix: err() fatal errors now work. They didn't work
due to bad regex.
* Added an installation script.
+8 -1
View File
@@ -9,7 +9,7 @@ use warnings;
use Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(cjoin cpart);
our @EXPORT_OK = qw(cjoin cpart mode);
# Join a channel.
@@ -30,3 +30,10 @@ sub cpart {
Auto::socksnd($svr, "PART $chan :Leaving");
}
}
# Set a mode
sub mode {
my ($svr, $chan, $modes) = @_;
Auto::socksnd($svr, "MODE $chan $modes");
}