From 5fabbb6f96f8c1a08869475a120d97396cbd0d36 Mon Sep 17 00:00:00 2001 From: djmcgrath Date: Sat, 17 May 2008 18:52:08 +0000 Subject: [PATCH] * Added chanset for verstats to allow disabling of command to prevent abuse * Added missing help for verstats * Sample infobot.chan updated to enable verstats by default git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1831 c11ca15a-4712-0410-83d8-924469b57eb5 --- ChangeLog | 2 ++ files/infobot.help | 5 +++++ files/sample/infobot.chan | 1 + src/CommandStubs.pl | 2 +- 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index de20dc4..6734c9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,8 @@ questions in non addressed mode * Fixed bug in babelfish module due to site/html changes +* Added chanset and help for verstats to allow disabling of command to prevent abuse + 1.5.2 ===== diff --git a/files/infobot.help b/files/infobot.help index 5b3853c..59b4bd8 100644 --- a/files/infobot.help +++ b/files/infobot.help @@ -481,6 +481,11 @@ userdel: D: Administrative command to remove a user from the .users file userdel: U: ## userdel: E: ## SomeAccount +verstats: D: Commnd to CTCP VERSION the specified channel for client statistics +verstats: U: ## +verstats: E: ## #infobot +verstats: E: < infobot> IRC Client versions for #infobot (2): unknown/cloak - 3 (75%) ;; irssi - 1 (25%). + wantnick: If someone's taken my nick (I hope not) and I'm using some temporary nick, I can change back to my original nick if it's not taken (again). whois: D: List available information for an account on the bot diff --git a/files/sample/infobot.chan b/files/sample/infobot.chan index 40ea9fa..a9742ae 100644 --- a/files/sample/infobot.chan +++ b/files/sample/infobot.chan @@ -101,6 +101,7 @@ _default +spell +tell +upsidedown + +verstats +wikipedia +wtf +zfi diff --git a/src/CommandStubs.pl b/src/CommandStubs.pl index d3c4e4d..ebfefb8 100644 --- a/src/CommandStubs.pl +++ b/src/CommandStubs.pl @@ -837,7 +837,7 @@ sub do_text_counters { &addCmdHook('upsidedown', ('CODEREF' => 'upsidedown::upsidedown', 'Identifier' => 'upsidedown', 'Cmdstats' => 'upsidedown', 'Forker' => 1, 'Module' => 'upsidedown') ); &addCmdHook('Uptime', ('CODEREF' => 'uptime', 'Identifier' => 'Uptime', 'Cmdstats' => 'Uptime') ); &addCmdHook('u(ser)?info', ('CODEREF' => 'userinfo', 'Identifier' => 'UserInfo', 'Help' => 'userinfo', 'Module' => 'UserInfo') ); -&addCmdHook('verstats', ('CODEREF' => 'do_verstats' ) ); +&addCmdHook('verstats', ('CODEREF' => 'do_verstats', 'Identifier' => 'verstats', 'Help' => 'verstats', 'Cmdstats' => 'verstats') ); &addCmdHook('Weather', ('CODEREF' => 'Weather::Weather', 'Identifier' => 'Weather', 'Help' => 'weather', 'Cmdstats' => 'Weather', 'Forker' => 1, 'Module' => 'Weather') ); &addCmdHook('wiki(pedia)?', ('CODEREF' => 'wikipedia::wikipedia', 'Identifier' => 'wikipedia', 'Cmdstats' => 'wikipedia', 'Forker' => 1, 'Help' => 'wikipedia', 'Module' => 'wikipedia') ); &addCmdHook('wtf', ('CODEREF' => 'wtf::query', 'Identifier' => 'wtf', 'Cmdstats' => 'wtf', 'Forker' => 1, 'Help' => 'wtf', 'Module' => 'wtf') ); -- 2.39.2