galador-isaac 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/isaac.gemspec +1 -1
  2. data/lib/isaac.rb +2 -2
  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.0"
3
+ s.version = "0.3.1"
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"
@@ -11,7 +11,7 @@ module Isaac
11
11
 
12
12
  class Bot
13
13
  attr_accessor :config, :irc, :nick, :channel, :message, :userhost, :match,
14
- :error
14
+ :error, :newnick
15
15
 
16
16
  def initialize(&b)
17
17
  @events = {}
@@ -157,7 +157,7 @@ module Isaac
157
157
  @bot.dispatch(type, env)
158
158
  when /(^:(\S+)!(\S+) )?NICK (\S+)/
159
159
  env = { :nick => $2, :userhost => $3, :newnick => $4 }
160
- if env[:newnick][0] == ":"
160
+ if env[:newnick][0] == 58 || env[:newnick][0] == ":"
161
161
  # Seems Unreal adds a colon before nick changes. Don't think
162
162
  # this is required by the RFC, but it's easy to fix it. :/
163
163
  env[:newnick].gsub!(":", "")
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.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan H.