From 66b0acef370cd778ce943e9b50bd8590467d43bf Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 6 Nov 2007 13:19:39 +0000 Subject: New Irc Framework: fix channel creation when topic=nil --- lib/rbot/irc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3