galador-isaac 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/isaac.gemspec +1 -1
  2. data/lib/isaac.rb +4 -0
  3. metadata +1 -1
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "isaac"
3
- s.version = "0.2.6"
3
+ s.version = "0.2.7"
4
4
  s.date = "2009-07-12"
5
5
  s.summary = "The smallish DSL for writing IRC bots"
6
6
  s.email = "bryan@galador.org"
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: galador-isaac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan H.