lib/potato/irc/client.rb in potato-0.0.10 vs lib/potato/irc/client.rb in potato-0.0.11

- old
+ new

@@ -306,9 +306,10 @@ # @param [String] by the mover of the user # @return [void] def move_user room, user, privclass, by chan_notice room, "#{user} has been moved to \x16#{privclass}\x0F by #{by}" us = @users[room].find{|x|x.username == user} + return if us.nil? # the user is not in this room mode = "" count = 0 unless us.symbol == sym(@client.privclasses[room][privclass]) unless us.symbol.empty? mode << "-#{sym_to_level(us.symbol)}" \ No newline at end of file