From f90faeeedf57d2b323f20208fff14834bbf132eb Mon Sep 17 00:00:00 2001 From: timriker Date: Tue, 23 Nov 2004 06:41:12 +0000 Subject: [PATCH] userinfo -> UserInfo git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1071 c11ca15a-4712-0410-83d8-924469b57eb5 --- files/sample/blootbot.chan | 4 ++-- files/sample/blootbot.config | 2 +- src/CommandStubs.pl | 10 +++++----- src/Modules/UserInfo.pl | 2 +- src/modules.pl | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/files/sample/blootbot.chan b/files/sample/blootbot.chan index 1f434c0..5657f7a 100644 --- a/files/sample/blootbot.chan +++ b/files/sample/blootbot.chan @@ -1,4 +1,4 @@ -#v1: blootbot -- infobot -- written Tue Nov 23 05:43:18 2004 +#v1: blootbot -- infobot -- written Tue Nov 23 06:40:39 2004 #botpark +RootWarn @@ -34,6 +34,7 @@ _default +Search +Topic +Units + +UserInfo +allowConv +allowDNS +allowTelling @@ -67,7 +68,6 @@ _default +slashdot +spell +tell - +userinfo +weather +wwwsearch +zfi diff --git a/files/sample/blootbot.config b/files/sample/blootbot.config index 4a5234f..6b98476 100644 --- a/files/sample/blootbot.config +++ b/files/sample/blootbot.config @@ -253,7 +253,7 @@ set spell true set Topic true # [0/1] User Information Services. -set userinfo true +set UserInfo true # [0/1] Uptime daemon set Uptime true diff --git a/src/CommandStubs.pl b/src/CommandStubs.pl index 7bf0fce..e48e597 100644 --- a/src/CommandStubs.pl +++ b/src/CommandStubs.pl @@ -205,8 +205,8 @@ sub parseCmdHook { &addCmdHook("extra", '(cookie|random)', ('CODEREF' => 'cookie', 'Forker' => 1, 'Identifier' => 'Factoids') ); &addCmdHook("extra", 'u(ser)?info', ('CODEREF' => 'userinfo', - 'Identifier' => 'userinfo', 'Help' => 'userinfo', - 'Module' => 'userinfo') ); + 'Identifier' => 'UserInfo', 'Help' => 'userinfo', + 'Module' => 'UserInfo') ); &addCmdHook("extra", 'RootWarn', ('CODEREF' => 'CmdrootWarn', 'Identifier' => 'RootWarn', 'Module' => 'RootWarn') ); &addCmdHook("extra", 'seen', ('CODEREF' => 'seen', 'Identifier' => @@ -567,7 +567,7 @@ sub userinfo { if ($arg =~ /^set(\s+(.*))?$/i) { $arg = $2; if (!defined $arg) { - &help("userinfo set"); + &help('userinfo set'); return; } @@ -575,11 +575,11 @@ sub userinfo { } elsif ($arg =~ /^unset(\s+(.*))?$/i) { $arg = $2; if (!defined $arg) { - &help("userinfo unset"); + &help('userinfo unset'); return; } - &UserInfoSet($arg, ""); + &UserInfoSet($arg, ''); } else { &UserInfoGet($arg); } diff --git a/src/Modules/UserInfo.pl b/src/Modules/UserInfo.pl index 6b769e5..e35373b 100644 --- a/src/Modules/UserInfo.pl +++ b/src/Modules/UserInfo.pl @@ -51,7 +51,7 @@ sub UserInfoGet { $query =~ s/^\s+|\s+$//g if (defined $query); if (!defined $query or $query =~ /^$/) { - &help("userinfo"); + &help('userinfo'); return; } diff --git a/src/modules.pl b/src/modules.pl index e39116b..c00a7ad 100644 --- a/src/modules.pl +++ b/src/modules.pl @@ -50,7 +50,7 @@ if ($@) { "Topic" => "Topic.pl", "Units" => "Units.pl", "Uptime" => "Uptime.pl", - "userinfo" => "UserInfo.pl", + "UserInfo" => "UserInfo.pl", "weather" => "Weather.pl", "whatis" => "WhatIs.pl", "wikipedia" => "wikipedia.pl", -- 2.39.2