Added kick() to API::IRC.

This commit is contained in:
Elijah Perrault committed 2011-02-09 19:53:48 -07:00
1 parent 38113d2961
commit 621e01e048
2 files changed
+12 -1

No files matched your search

+11 -1
View File
@@ -9,7 +9,7 @@ use warnings;
use Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(cjoin cpart cmode umode privmsg notice quit nick names topic
our @EXPORT_OK = qw(cjoin cpart cmode umode kick privmsg notice quit nick names topic
usrc match_mask);
@@ -122,6 +122,16 @@ sub topic
return 1;
}
# Kick a user.
sub kick
{
my ($svr, $chan, $nick, $msg) = @_;
Auto::socksnd($svr, "KICK $chan $nick :$msg");
return 1;
}
# Quit IRC.
sub quit
{