diff options
-rw-r--r-- | lib/rbot/irc.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb index 1cfb4592..99ea2ebd 100644 --- a/lib/rbot/irc.rb +++ b/lib/rbot/irc.rb @@ -1145,9 +1145,11 @@ module Irc # debug "User already existed as #{old.inspect}"
if tmp.known?
if old.known?
- raise "User #{tmp.nick} has inconsistent Netmasks! #{self} knows #{old.inspect} but access was tried with #{tmp.inspect}" if old != tmp
+ # Do not raise an error: things like Freenode change the hostname after identification
+ warning "User #{tmp.nick} has inconsistent Netmasks! #{self} knows #{old.inspect} but access was tried with #{tmp.inspect}" if old != tmp
raise "User #{tmp} already exists on server #{self}" if fails
- else
+ end
+ if old != tmp
old.user = tmp.user
old.host = tmp.host
# debug "User improved to #{old.inspect}"
|