Oops.
This commit is contained in:
1 parent
a22ee16ffb
commit
026c2e02db
2 files changed
+2
-13
No files matched your search
@@ -284,18 +284,6 @@ else {
|
|||||||
}
|
}
|
||||||
undef $it;
|
undef $it;
|
||||||
|
|
||||||
### NOTE: REMOVE THIS FROM MAINLINE CODE. IT IS FOR DEVELOPMENT PURPOSES ONLY. ###
|
|
||||||
sub hw {
|
|
||||||
my (%data) = @_; my @argv = @{ $data{args} };
|
|
||||||
if (API::Std::has_priv(API::Std::match_user(%data), "cmd.say")) {
|
|
||||||
API::IRC::privmsg($data{svr}, $data{chan}, @argv);
|
|
||||||
}
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
cmd_add("SAY", 0, 0, 0, \&Auto::hw) or exit;
|
|
||||||
### End ###
|
|
||||||
|
|
||||||
# Infinite while loop.
|
# Infinite while loop.
|
||||||
while (1) {
|
while (1) {
|
||||||
# Timer check.
|
# Timer check.
|
||||||
|
|||||||
+2
-1
@@ -11,7 +11,8 @@ use Exporter;
|
|||||||
our (%LANGE, %MODULE, %EVENTS, %HOOKS, %CMDS);
|
our (%LANGE, %MODULE, %EVENTS, %HOOKS, %CMDS);
|
||||||
our @ISA = qw(Exporter);
|
our @ISA = qw(Exporter);
|
||||||
our @EXPORT_OK = qw(conf_get trans err awarn timer_add timer_del cmd_add
|
our @EXPORT_OK = qw(conf_get trans err awarn timer_add timer_del cmd_add
|
||||||
cmd_del hook_add hook_del rchook_add rchook_del match_user);
|
cmd_del hook_add hook_del rchook_add rchook_del match_user
|
||||||
|
has_privy);
|
||||||
|
|
||||||
|
|
||||||
# Initialize a module.
|
# Initialize a module.
|
||||||
|
|||||||
Reference in new issue
Block a user