Permalink
Browse files

source is no a Channel.

  • Loading branch information...
1 parent 3782255 commit 3d8e39fa4d080f600a4810473f2138167d3657c2 @michaeltwofish committed Apr 3, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.md
View
@@ -56,7 +56,7 @@ The jerk object (`j`) has only one method: `watch_for`. Which takes two argument
```javascript
{ user: String
-, source: String
+, source: Channel
, match_data: Array
, say: Function( message )
, msg: Function( message )
@@ -65,6 +65,8 @@ The jerk object (`j`) has only one method: `watch_for`. Which takes two argument
One thing I will tell you though, is the `say` method is smart enough to reply to the context that the message was received, so you don't need to pass it any extra info, just a reply :) However, the `msg` method can be used if you'd like to force sending a message directly to a user (aka a PM).
+Cast `source` to a string to return the channel name. You can also work out who is in a channel by iterating over `source.clients`.
+
The `connect` method returns an object with some handy methods that you can use outside of your `watch_for`s:
```javascript

0 comments on commit 3d8e39f

Please sign in to comment.