summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-20 21:35:13 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-20 21:35:13 +0000
commit0118b777ea7eeef59d4210ed7b32016517f5a9e0 (patch)
tree8bb7dbf5f9e67c49e7d12bc2b52f0ecb4c99d79e /data/rbot
parent21d2d135f76357205b63ab0e9fac836ca5d1ba78 (diff)
Bug in topic plugin introduced in [440]
Diffstat (limited to 'data/rbot')
-rwxr-xr-xdata/rbot/plugins/topic.rb5
1 files changed, 4 insertions, 1 deletions
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(" ")