irc_socket 1.0.8 → 1.0.9
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.
- checksums.yaml +4 -4
- data/lib/irc_socket.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5caa328861ed80e0bf06af949a3ec77aa244256fef63830c3313865b7847fc4d
|
|
4
|
+
data.tar.gz: f006e451e6e583d50eec286b0061b8db5e356709b1a0da81a7a7cface77406cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fdcea81908b3405944eb33e710b1302a7bb9da3092287e66a1cab000381667053297b12895f7ccd58cf21d2418e0f905be059e6627970aaa62416d36df10813e
|
|
7
|
+
data.tar.gz: 7c81c0cb7634f76c0d8312f0ad80ca12c8341cc2ccb8d8c69d1f365157e56d3ab468f1930d9b6bfa4e439f44b982a11fd92264416e8939fcc9a5f99c9540ab2f
|
data/lib/irc_socket.rb
CHANGED
|
@@ -61,14 +61,14 @@ class IRCSocket
|
|
|
61
61
|
#
|
|
62
62
|
# NOTE: Using the block form does not mean the socket will send the applicable QUIT
|
|
63
63
|
# command to leave the IRC server. You must send this yourself.
|
|
64
|
-
def initialize(server, port=6667, ssl=false)
|
|
64
|
+
def initialize(server, port=6667, ssl=false, *args)
|
|
65
65
|
@server = server
|
|
66
66
|
@port = port
|
|
67
67
|
@ssl = ssl
|
|
68
68
|
|
|
69
69
|
@socket = nil
|
|
70
70
|
@connected = false
|
|
71
|
-
|
|
71
|
+
@args = args
|
|
72
72
|
if block_given?
|
|
73
73
|
connect
|
|
74
74
|
yield self
|
|
@@ -84,7 +84,7 @@ class IRCSocket
|
|
|
84
84
|
# Connect to an IRC server, returns true on a successful connection, or
|
|
85
85
|
# raises otherwise
|
|
86
86
|
def connect
|
|
87
|
-
socket = TCPSocket.new(server, port)
|
|
87
|
+
socket = TCPSocket.new(server, port, *@args)
|
|
88
88
|
|
|
89
89
|
if @ssl
|
|
90
90
|
require 'openssl'
|
|
@@ -299,7 +299,7 @@ class IRCSocket
|
|
|
299
299
|
def zline(reason, *args)
|
|
300
300
|
raw("ZLINE", args.join(' '), ":#{reason}")
|
|
301
301
|
end
|
|
302
|
-
|
|
302
|
+
|
|
303
303
|
# Close our socket instance
|
|
304
304
|
def close
|
|
305
305
|
@socket.close if connected?
|