Method: Cinch::Channel#ban

Defined in:
lib/cinch/channel.rb

#ban(target) ⇒ Mask

Bans someone from the channel.

Parameters:

  • target (Mask, String, #mask)

    the mask, or an object having a mask, to ban

Returns:

  • (Mask)

    the mask used for banning

See Also:



251
252
253
254
255
256
# File 'lib/cinch/channel.rb', line 251

def ban(target)
  mask = Mask.from(target)

  @bot.irc.send "MODE #@name +b #{mask}"
  mask
end