]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/topic.rb
Bug in topic plugin introduced in [440]
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / topic.rb
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(" ")