summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/irc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb
index 2a4642a2..64cfdf5a 100644
--- a/lib/rbot/irc.rb
+++ b/lib/rbot/irc.rb
@@ -1335,7 +1335,7 @@ module Irc
@name = name
- @topic = (topic.to_irc_channel_topic rescue Channel::Topic.new)
+ @topic = topic ? topic.to_irc_channel_topic : Channel::Topic.new
@users = UserList.new