diff --git a/bin/auto b/bin/auto index ee6e0da..98266e7 100755 --- a/bin/auto +++ b/bin/auto @@ -284,18 +284,6 @@ else { } 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. while (1) { # Timer check. diff --git a/src/API/Std.pm b/src/API/Std.pm index 873ce0d..54ca1c7 100644 --- a/src/API/Std.pm +++ b/src/API/Std.pm @@ -11,7 +11,8 @@ use Exporter; our (%LANGE, %MODULE, %EVENTS, %HOOKS, %CMDS); our @ISA = qw(Exporter); 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.