]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Bug in topic plugin introduced in [440]
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 20 Aug 2006 21:35:13 +0000 (21:35 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 20 Aug 2006 21:35:13 +0000 (21:35 +0000)
ChangeLog
data/rbot/plugins/topic.rb

index 63e06d868c54a2ce436d171af14a05a06e42b940..bcfd7a45ec2e44a817c1cc3d53ff7fbbae807032 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-20  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+       * Topic plugin: fix a bug that prevented it from loading
+       correctly.
+
 2006-08-17  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
 
        * Fix help: It got broken while rearranging the plugin stuff, now it's
index 0b266851a2faca929d1ced357b6ca340e90c6ede..7f5d528a3b70a3bf52de9850cb40916bc52d4cba 100755 (executable)
@@ -45,7 +45,10 @@ class TopicPlugin < Plugin
       ch = m.channel
     else
       ch = m.server.get_channel(param[:channel])
-      return m.reply "I am not in channel #{ch}" unless ch
+      unless ch
+        m.reply("I am not in channel #{param[:channel]}")
+        return
+      end
     end
     cmd = param[:command]
     txt = param[:text].join(" ")