galador-isaac 0.2.6 → 0.2.7
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 +4 -0
- metadata +1 -1
data/isaac.gemspec
CHANGED
data/lib/isaac.rb
CHANGED
@@ -150,6 +150,10 @@ module Isaac
|
|
150
150
|
env = { :nick => $2, :userhost => $3, :channel => $4, :message => $5 }
|
151
151
|
type = env[:channel].match(/^#/) ? :channel : :private
|
152
152
|
@bot.dispatch(type, env)
|
153
|
+
when /(^:(\S+)!(\S+) )?NOTICE (\S+) :?(.*)/
|
154
|
+
env = { :nick => $2, :userhost => $3, :channel => $4, :message => $5 }
|
155
|
+
type = env[:channel].match(/^#/) ? :chnotice : :notice
|
156
|
+
@bot.dispatch(type, env)
|
153
157
|
when /(^:\S+ )?([4-5]\d\d) \S+ (\S+)/
|
154
158
|
env = {:error => $2.to_i, :message => $2, :nick => $3, :channel => $3}
|
155
159
|
@bot.dispatch(:error, env)
|