Permalink
Browse files

fix: Bug where cache does not exist before use

  • Loading branch information...
1 parent 0a55928 commit 68c026cf4c392a76f154e8a7983bedaddd96e47c @gf3 committed Feb 18, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −0 lib/jerk.js
  2. +1 −1 package.json
View
@@ -112,6 +112,9 @@ Jerk = new ( function Jerk() {
if ( message.person.nick == bot.options.nick )
return
+ if ( ! clients[ message.params[0] ] )
+ clients[ message.params[0] ] = {}
+
// Add user to client cache
clients[ message.params[0] ][ _normalize_nick( message.person.nick ) ] = true
View
@@ -8,7 +8,7 @@
, "Tomás Senart <tsenart@me.com> http://about.me/tsenart"
]
, "homepage" : "http://github.com/gf3/Jerk"
-, "version" : "1.1.22"
+, "version" : "1.1.23"
, "main" : "./lib/jerk"
, "dependencies" :
{ "irc-js": "=2.0.0-beta"

0 comments on commit 68c026c

Please sign in to comment.