From 0118b777ea7eeef59d4210ed7b32016517f5a9e0 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 20 Aug 2006 21:35:13 +0000 Subject: Bug in topic plugin introduced in [440] --- data/rbot/plugins/topic.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'data/rbot') 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(" ") -- cgit v1.2.3