Added topic() to API::IRC.

This commit is contained in:
Elijah Perrault committed 2011-01-30 13:43:15 -07:00
1 parent a0e47e497d
commit 1260a3edad
2 files changed
+13 -1

No files matched your search

+1
View File
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
3.0 Indev
==================================================================
* Added topic() to API::IRC.
* Added has_priv() to API::Std.
* Finished the host-based privilege/permission system.
* Added hook on_preconnect, this comes before USER (after PASS).
+12 -1
View File
@@ -9,7 +9,8 @@ use warnings;
use Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(cjoin cpart cmode umode privmsg notice quit nick names usrc match_mask);
our @EXPORT_OK = qw(cjoin cpart cmode umode privmsg notice quit nick names topic
usrc match_mask);
# Join a channel.
@@ -99,6 +100,16 @@ sub names
return 1;
}
# Send a topic to the channel.
sub topic
{
my ($svr, $chan, $topic) = @_;
Auto::socksnd($svr, "TOPIC $chan :$topic");
return 1;
}
# Quit IRC.
sub quit
{