Method: Cinch::Channel#remove
- Defined in:
- lib/cinch/channel.rb
#remove(user, reason = nil)
This method returns an undefined value.
Removes a user from the channel.
This uses the REMOVE command, which is a non-standardized extension. Unlike a kick, it makes a user part. This prevents auto-rejoin scripts from firing and might also be perceived as less aggressive by some. Not all IRC networks support this command.
349 350 351 |
# File 'lib/cinch/channel.rb', line 349 def remove(user, reason = nil) @bot.irc.send("REMOVE #@name #{user} :#{reason}") end |