From 26f427333c9f2aa68cdb0609c2584d04135c75ff Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Wed, 9 Feb 2011 14:38:31 -0700 Subject: [PATCH] Renamed Core::IRC to Core::Cmd. --- bin/auto | 16 ++++++++-------- doc/CHANGELOG | 1 + src/Core/{IRC.pm => Cmd.pm} | 5 +++-- 3 files changed, 12 insertions(+), 10 deletions(-) rename src/Core/{IRC.pm => Cmd.pm} (99%) diff --git a/bin/auto b/bin/auto index ee763b9..ecd81e9 100755 --- a/bin/auto +++ b/bin/auto @@ -37,7 +37,7 @@ use DB::Flatfile; use Parser::Config; use Parser::Lang; use Parser::IRC; -use Core::IRC; +use Core::Cmd; our $VERSION = 3.0.0; local $PROGRAM_NAME = 'auto'; @@ -349,14 +349,14 @@ else { undef $it; # Create core hooks. -API::Std::hook_add('on_uprivmsg', 'ctcp_version_reply', \&Core::IRC::version_reply); +API::Std::hook_add('on_uprivmsg', 'ctcp_version_reply', \&Core::Cmd::version_reply); # Create core commands. -API::Std::cmd_add('MODLOAD', 1, 'cfunc.modules', \%Core::IRC::HELP_MODLOAD, \&Core::IRC::cmd_modload); -API::Std::cmd_add('MODUNLOAD', 1, 'cfunc.modules', \%Core::IRC::HELP_MODUNLOAD, \&Core::IRC::cmd_modunload); -API::Std::cmd_add('MODRELOAD', 1, 'cfunc.modules', \%Core::IRC::HELP_MODRELOAD, \&Core::IRC::cmd_modreload); -API::Std::cmd_add('SHUTDOWN', 2, 'cmd.shutdown', \%Core::IRC::HELP_SHUTDOWN, \&Core::IRC::cmd_shutdown); -API::Std::cmd_add('RESTART', 2, 'cmd.restart', \%Core::IRC::HELP_RESTART, \&Core::IRC::cmd_restart); -API::Std::cmd_add('HELP', 2, 0, \%Core::IRC::HELP_HELP, \&Core::IRC::cmd_help); +API::Std::cmd_add('MODLOAD', 1, 'cfunc.modules', \%Core::Cmd::HELP_MODLOAD, \&Core::Cmd::cmd_modload); +API::Std::cmd_add('MODUNLOAD', 1, 'cfunc.modules', \%Core::Cmd::HELP_MODUNLOAD, \&Core::Cmd::cmd_modunload); +API::Std::cmd_add('MODRELOAD', 1, 'cfunc.modules', \%Core::Cmd::HELP_MODRELOAD, \&Core::Cmd::cmd_modreload); +API::Std::cmd_add('SHUTDOWN', 2, 'cmd.shutdown', \%Core::Cmd::HELP_SHUTDOWN, \&Core::Cmd::cmd_shutdown); +API::Std::cmd_add('RESTART', 2, 'cmd.restart', \%Core::Cmd::HELP_RESTART, \&Core::Cmd::cmd_restart); +API::Std::cmd_add('HELP', 2, 0, \%Core::Cmd::HELP_HELP, \&Core::Cmd::cmd_help); # Infinite while loop. while (1) { diff --git a/doc/CHANGELOG b/doc/CHANGELOG index c324e93..5f84df8 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log 3.0 Indev ================================================================== + * Renamed Core::IRC to Core::Cmd. * Parse MODE. * Added CertFP support. * Rewrote socket read/write methods. diff --git a/src/Core/IRC.pm b/src/Core/Cmd.pm similarity index 99% rename from src/Core/IRC.pm rename to src/Core/Cmd.pm index 6ed76fc..3b7458a 100644 --- a/src/Core/IRC.pm +++ b/src/Core/Cmd.pm @@ -2,8 +2,8 @@ # Copyright (C) 2010-2011 Xelhua Development Team (doc/CREDITS) # This program is free software; rights to this code are stated in doc/LICENSE. -# Core IRC functionality. -package Core::IRC; +# Core::Cmd - Core commands. +package Core::Cmd; use strict; use warnings; use English; @@ -297,3 +297,4 @@ sub cmd_help 1; +# vim: set ai sw=4 ts=4: