|
|
|
@ -20,6 +20,7 @@ import time
@@ -20,6 +20,7 @@ import time
|
|
|
|
|
import threading |
|
|
|
|
import traceback |
|
|
|
|
import sys |
|
|
|
|
import ssl |
|
|
|
|
|
|
|
|
|
from oyoyo.parse import parse_raw_irc_command |
|
|
|
|
|
|
|
|
@ -108,6 +109,7 @@ class IRCClient(object):
@@ -108,6 +109,7 @@ class IRCClient(object):
|
|
|
|
|
self.connect_cb = None |
|
|
|
|
self.blocking = True |
|
|
|
|
self.sasl_auth = False |
|
|
|
|
self.use_ssl = False |
|
|
|
|
self.lock = threading.RLock() |
|
|
|
|
|
|
|
|
|
self.tokenbucket = TokenBucket(23, 1.73) |
|
|
|
@ -115,6 +117,9 @@ class IRCClient(object):
@@ -115,6 +117,9 @@ class IRCClient(object):
|
|
|
|
|
self.__dict__.update(kwargs) |
|
|
|
|
self.command_handler = cmd_handler |
|
|
|
|
|
|
|
|
|
if self.use_ssl: |
|
|
|
|
self.socket = ssl.wrap_socket(self.socket) |
|
|
|
|
|
|
|
|
|
self._end = 0 |
|
|
|
|
|
|
|
|
|
def send(self, *args, **kwargs): |
|
|
|
|