UtahJS/Hoggle — pull request #1 by fivetanley (2012-01-25 03:16:39+00:00)
Title: Stop "help" commands from flooding the IRC channel.

The commit provides code that directs the "help" dialogue from the IRC bot to a private message with the person who asked for "help", instead of filling the channel with 7+ lines of commands every time.

You can find the code that defines the IRC Adapter here: [hubot-irc source code](https://github.com/nandub/hubot-irc/blob/master/src/irc.coffee) .

The code for sending messages begins on line 7 and ends on line 16. The "send" method will send to the channel if a "room" is defined in a User instance. Otherwise, it will send it directly to the user.

From examining the source code of this Adapter, I couldn't find any other methods that will let you send messages. The "reply" method merely hooks into the "send" method for what appears to be highlighting someone during a series of messages in a channel.

I have tested this on a separate channel on Freenode and it appears to work.