lib/bot.rb
def canLink(m)

    # Checks if user is a mod. Mods can send links.
    if isMod(m)
      return true
    end
    
    # Checks if the user is permitted to send a link.
    if !@@permitLink.empty?
      if @@permitLink.include? m.user.nick.downcase
        @@permitLink.delete(m.user.nick.downcase)
        return true
      end
    else
      return false
    end
  end
# Checks to see if the user can send a link.
#
# m - The message object.
#
# Returns true if the user can send a link and false if they can not.

Checks to see if the user can send a link.
m - The message object.

Returns true if the user can send a link and false if they can not.
Checks to see if the user can send a link . m - The message object . Returns true if the user can send a link and false if they can not .
def canLink(m)
    if isMod(m)
      return true
    end
    if !@@permitLink.empty?
      if @@permitLink.include? m.user.nick.downcase
        @@permitLink.delete(m.user.nick.downcase)
        return true
      end
    else
      return false
    end
  end
def canLink ( m ) if isMod ( m ) return true end if ! @@permitLink . empty? if @@permitLink . include? m . user . nick . downcase @@permitLink . delete ( m . user . nick . downcase ) return true end else return false end end
Checks to see if the user can send a link.
Checks to see if the user can send a link .
# Checks if user is a mod. Mods can send links.
 # Checks if the user is permitted to send a link.

m