lib/cinch/plugins/admin.rb
# Called every 5 minutes to attempt to fix the bots name.
# This can happen if the bot gets disconnected and reconnects before
# the last bot as been kicked from the IRC server.
Called every 5 minutes to attempt to fix the bots name.
This can happen if the bot gets disconnected and reconnects before
the last bot as been kicked from the IRC server.
Called every 5 minutes to attempt to fix the bots name . This can happen if the bot gets disconnected and reconnects before the last bot as been kicked from the IRC server .
def fix_name
        if @bot.nick == "#{shared[:Bot_Nick]}"
          puts "Nick is fine, no change necessary."
        else
          puts "Fixing nickname."
          @bot.nick = "#{shared[:Bot_Nick]}"
        end
      end
def fix_name if @bot . nick == "#{shared[:Bot_Nick]}" puts "Nick is fine, no change necessary." else puts "Fixing nickname." @bot . nick = "#{shared[:Bot_Nick]}" end end
Called every 5 minutes to attempt to fix the bots name.
Called every 5 minutes to attempt to fix the bots name .