Added topic() to API::IRC.
This commit is contained in:
1 parent
a0e47e497d
commit
1260a3edad
2 files changed
+13
-1
No files matched your search
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
|
|||||||
|
|
||||||
3.0 Indev
|
3.0 Indev
|
||||||
==================================================================
|
==================================================================
|
||||||
|
* Added topic() to API::IRC.
|
||||||
* Added has_priv() to API::Std.
|
* Added has_priv() to API::Std.
|
||||||
* Finished the host-based privilege/permission system.
|
* Finished the host-based privilege/permission system.
|
||||||
* Added hook on_preconnect, this comes before USER (after PASS).
|
* Added hook on_preconnect, this comes before USER (after PASS).
|
||||||
|
|||||||
+12
-1
@@ -9,7 +9,8 @@ use warnings;
|
|||||||
use Exporter;
|
use Exporter;
|
||||||
|
|
||||||
our @ISA = qw(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.
|
# Join a channel.
|
||||||
@@ -99,6 +100,16 @@ sub names
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Send a topic to the channel.
|
||||||
|
sub topic
|
||||||
|
{
|
||||||
|
my ($svr, $chan, $topic) = @_;
|
||||||
|
|
||||||
|
Auto::socksnd($svr, "TOPIC $chan :$topic");
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
# Quit IRC.
|
# Quit IRC.
|
||||||
sub quit
|
sub quit
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user