galador-isaac 0.3.2 → 0.3.3

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 +9 -1
  3. metadata +1 -1
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "isaac"
3
- s.version = "0.3.2"
3
+ s.version = "0.3.3"
4
4
  s.date = "2009-07-14"
5
5
  s.summary = "The smallish DSL for writing IRC bots"
6
6
  s.email = "bryan@galador.org"
@@ -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+) )?QUIT :?(.*)/i
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)
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.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan H.