galador-isaac 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/isaac.gemspec +1 -1
- data/lib/isaac.rb +9 -1
- metadata +1 -1
data/isaac.gemspec
CHANGED
data/lib/isaac.rb
CHANGED
@@ -159,7 +159,15 @@ module Isaac
|
|
159
159
|
env = { :nick => $2, :userhost => $3, :newnick => $4 }
|
160
160
|
type = :nick
|
161
161
|
@bot.dispatch(type, env)
|
162
|
-
when /(^:(\S+)!(\S+) )?
|
162
|
+
when /(^:(\S+)!(\S+) )?JOIN :?(\S+)/
|
163
|
+
env = { :nick => $2, :userhost => $3, :channel => $4 }
|
164
|
+
type = :join
|
165
|
+
@bot.dispatch(type, env)
|
166
|
+
when /(^:(\S+)!(\S+) )?PART (\S+)(\s:?(\S+))?/
|
167
|
+
env = { :nick => $2, :userhost => $3, :channel => $4, :message => $6 }
|
168
|
+
type = :part
|
169
|
+
@bot.dispatch(type, env)
|
170
|
+
when /(^:(\S+)!(\S+) )?QUIT :?(.*)/
|
163
171
|
env = { :nick => $2, :userhost => $3, :message => $4 }
|
164
172
|
type = :quit
|
165
173
|
@bot.dispatch(type, env)
|