cinch 2.0.0.pre.3 → 2.0.0.pre.4

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.
@@ -44,10 +44,10 @@ module Cinch
44
44
  attr_reader :modes
45
45
  synced_attr_reader :modes
46
46
  def initialize(name, bot)
47
- @bot = bot
48
- @name = name
49
- @users = Hash.new {|h,k| h[k] = []}
50
- @bans = []
47
+ @bot = bot
48
+ @name = name
49
+ @users = Hash.new {|h, k| h[k] = []}
50
+ @bans = []
51
51
  @owners = []
52
52
 
53
53
  @modes = {}
@@ -90,7 +90,7 @@ module Cinch
90
90
  def Timer(interval, options = {}, &block)
91
91
  options = {:method => :timer, :threaded => true, :interval => interval}.merge(options)
92
92
  block ||= self.method(options[:method])
93
- timer = Cinch::Timer.new(bot, options, &block)
93
+ timer = Cinch::Timer.new(bot, options, &block)
94
94
  timer.start
95
95
 
96
96
  timer
@@ -66,11 +66,11 @@ module Cinch
66
66
  attr_reader :target
67
67
 
68
68
  def initialize(msg, bot)
69
- @raw = msg
70
- @bot = bot
69
+ @raw = msg
70
+ @bot = bot
71
71
  @matches = {:ctcp => {}, :action => {}, :other => {}}
72
- @events = []
73
- @time = Time.now
72
+ @events = []
73
+ @time = Time.now
74
74
  parse if msg
75
75
  end
76
76
 
@@ -90,7 +90,7 @@ module Cinch
90
90
 
91
91
  @user = parse_user
92
92
  @channel = parse_channel
93
- @target = @user || @channel
93
+ @target = @channel || @user
94
94
  @server = parse_server
95
95
  @error = parse_error
96
96
  @message = parse_message
@@ -1,4 +1,4 @@
1
1
  module Cinch
2
2
  # Version of the library
3
- VERSION = '2.0.0-pre.3'
3
+ VERSION = '2.0.0-pre.4'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinch
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.3
4
+ version: 2.0.0.pre.4
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: