diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-06 13:19:39 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-06 13:19:39 +0000 |
commit | 66b0acef370cd778ce943e9b50bd8590467d43bf (patch) | |
tree | ef72ead5b51f78035223f214f42dd847741e16ed /lib/rbot | |
parent | a1cf5c398047cc5a71d6c72aa1ef76150c4eda2a (diff) |
New Irc Framework: fix channel creation when topic=nil
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/irc.rb | 2 |
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
|