cinch 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cinch/bot.rb +1 -1
- data/lib/cinch/helpers.rb +4 -0
- data/lib/cinch/irc.rb +7 -1
- data/lib/cinch/version.rb +1 -1
- metadata +2 -2
data/lib/cinch/bot.rb
CHANGED
data/lib/cinch/helpers.rb
CHANGED
data/lib/cinch/irc.rb
CHANGED
@@ -230,6 +230,7 @@ module Cinch
|
|
230
230
|
if registered?
|
231
231
|
events << [:connect]
|
232
232
|
@bot.last_connection_was_successful = true
|
233
|
+
on_connect(msg, events)
|
233
234
|
end
|
234
235
|
end
|
235
236
|
|
@@ -389,6 +390,11 @@ module Cinch
|
|
389
390
|
end
|
390
391
|
end
|
391
392
|
|
393
|
+
# @since 2.0.0
|
394
|
+
def on_connect(msg, events)
|
395
|
+
@bot.modes = @bot.config.modes
|
396
|
+
end
|
397
|
+
|
392
398
|
def on_join(msg, events)
|
393
399
|
if msg.user == @bot
|
394
400
|
@bot.channels << msg.channel
|
@@ -517,7 +523,7 @@ module Cinch
|
|
517
523
|
channel.remove_user(msg.user)
|
518
524
|
end
|
519
525
|
msg.user.unsync_all
|
520
|
-
msg.user.online =
|
526
|
+
msg.user.online = false
|
521
527
|
|
522
528
|
set_leaving_user(msg, msg.user, events)
|
523
529
|
|
data/lib/cinch/version.rb
CHANGED
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.
|
4
|
+
version: 2.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-01 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A simple, friendly DSL for creating IRC bots
|
15
15
|
email:
|