   part: (channel) ->
     @bot.part channel, () ->
       console.log('left %s', channel)
+
+  kick: (channel, client, message) ->
+    @bot.emit 'raw',
+      command: 'KICK'
+      nick: process.env.HUBOT_IRC_NICK
+      args: [ channel, client, message ]
 
   command: (command, strings...) ->
     @bot.send command, strings...


    self.emit "connected"

class IrcResponse extends Robot.Response
  notice: (strings...) ->
    @robot.adapter.notice @message.user, strings...


Robot   = require('hubot').Robot
Adapter = require('hubot').Adapter
TextMessage = require('hubot').TextMessage

Irc     = require 'irc'

class IrcBot extends Adapter
  send: (user, strings...) ->
    for str in strings
      if not str?
