summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rwxr-xr-xdata/rbot/plugins/topic.rb5
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 63e06d86..bcfd7a45 100644
--- 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
diff --git a/data/rbot/plugins/topic.rb b/data/rbot/plugins/topic.rb
index 0b266851..7f5d528a 100755
--- a/data/rbot/plugins/topic.rb
+++ b/data/rbot/plugins/topic.rb
@@ -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(" ")