diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-06-07 14:30:01 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-06-07 14:30:01 +0000 |
commit | e0ae5e3a02ef7c85e9af8c4f476c72f149ab8b32 (patch) | |
tree | 2efe1586a390ad56cfdc27880af5eee5cb6a504f /lib/rbot | |
parent | 683c2328496a60529310a10cb46582d800d71888 (diff) |
Fix #65 and #95. Disable topic built-in command since the new topic plugin handles that, and more
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/ircbot.rb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index 57ef816a..981a09a9 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -635,8 +635,8 @@ class IrcBot return "say <channel>|<nick> <message> => say <message> to <channel> or in private message to <nick>" when "action" return "action <channel>|<nick> <message> => does a /me <message> to <channel> or in private message to <nick>" - when "topic" - return "topic <channel> <message> => set topic of <channel> to <message>" + # when "topic" + # return "topic <channel> <message> => set topic of <channel> to <message>" when "quiet" return "quiet [in here|<channel>] => with no arguments, stop speaking in all channels, if \"in here\", stop speaking in this channel, or stop speaking in <channel>" when "talk" @@ -679,6 +679,7 @@ class IrcBot end if(m.address?) + delegate_privmsg(m) case m.message when (/^join\s+(\S+)\s+(\S+)$/i) join $1, $2 if(@auth.allow?("join", m.source, m.replyto)) @@ -705,16 +706,19 @@ class IrcBot say $1, $2 if(@auth.allow?("say", m.source, m.replyto)) when (/^action\s+(\S+)\s+(.*)$/i) action $1, $2 if(@auth.allow?("say", m.source, m.replyto)) - when (/^topic\s+(\S+)\s+(.*)$/i) - topic $1, $2 if(@auth.allow?("topic", m.source, m.replyto)) + # when (/^topic\s+(\S+)\s+(.*)$/i) + # topic $1, $2 if(@auth.allow?("topic", m.source, m.replyto)) when (/^mode\s+(\S+)\s+(\S+)\s+(.*)$/i) mode $1, $2, $3 if(@auth.allow?("mode", m.source, m.replyto)) when (/^ping$/i) say m.replyto, "pong" when (/^rescan$/i) if(@auth.allow?("config", m.source, m.replyto)) - m.okay + m.reply "Saving ..." + save + m.reply "Rescanning ..." rescan + m.okay end when (/^quiet$/i) if(auth.allow?("talk", m.source, m.replyto)) @@ -759,8 +763,6 @@ class IrcBot when (/^(hello|howdy|hola|salut|bonjour|sup|niihau|hey|hi(\W|$)|yo(\W|$)).*/i) say m.replyto, @lang.get("hello_X") % m.sourcenick if(m.public?) say m.replyto, @lang.get("hello") if(m.private?) - else - delegate_privmsg(m) end else # stuff to handle when not addressed |