From 78ed4d39c37c0ef0528e030a1f6867e3b02fcef3 Mon Sep 17 00:00:00 2001 From: Matthew Barksdale Date: Thu, 20 Jan 2011 02:07:14 -0500 Subject: [PATCH] Rename msg to privmsg --- doc/CHANGELOG | 2 +- src/API/IRC.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/CHANGELOG b/doc/CHANGELOG index 105b8b9..ce7d9a6 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -3,7 +3,7 @@ Auto IRC Bot 3.0: Change Log 3.0 Indev ================================================================== - * Added mode, msg, and notice subroutine to API::IRC. + * Added mode, privmsg, and notice subroutine to API::IRC. * Added PASS support. * Bug fix: err() fatal errors now work. They didn't work due to bad regex. diff --git a/src/API/IRC.pm b/src/API/IRC.pm index cea1713..8db854a 100644 --- a/src/API/IRC.pm +++ b/src/API/IRC.pm @@ -9,7 +9,7 @@ use warnings; use Exporter; our @ISA = qw(Exporter); -our @EXPORT_OK = qw(cjoin cpart mode msg notice); +our @EXPORT_OK = qw(cjoin cpart mode privmsg notice); # Join a channel. @@ -39,7 +39,7 @@ sub mode { } # Send a PRIVMSG -sub msg { +sub privmsg { my ($svr, $target, $message) = @_; Auto::socksnd($svr, "PRIVMSG $target :$message");