-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- reactor initialization refactored with proper initialization exception handling, much safer integration particularly for other plugins using twisted - check to see if ThreadedSelectReactor is being used and warning logged if not - better? logging support, i hope - twisted updated to 13.1 and patches removed to go into subclasses later while official twisted patches move through their release process
- Loading branch information
Showing
3 changed files
with
362 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Index: twisted/words/protocols/irc.py | ||
=================================================================== | ||
--- twisted/words/protocols/irc.py (revision 39738) | ||
+++ twisted/words/protocols/irc.py (working copy) | ||
@@ -2285,7 +2285,7 @@ | ||
if len(data) < 3: | ||
raise IRCBadMessage, "malformed DCC CHAT request: %r" % (data,) | ||
|
||
- (filename, address, port) = data[:3] | ||
+ (protocol, address, port) = data[:3] | ||
|
||
address = dccParseAddress(address) | ||
try: | ||
@@ -2293,7 +2293,7 @@ | ||
except ValueError: | ||
raise IRCBadMessage, "Indecipherable port %r" % (port,) | ||
|
||
- self.dccDoChat(user, channel, address, port, data) | ||
+ self.dccDoChat(user, channel, protocol, address, port, data) | ||
|
||
### The dccDo methods are the slightly higher-level siblings of | ||
### common dcc_ methods; the arguments have been parsed for them. | ||
@@ -2320,7 +2320,7 @@ | ||
request made by us. By default it will do nothing.""" | ||
pass | ||
|
||
- def dccDoChat(self, user, channel, address, port, data): | ||
+ def dccDoChat(self, user, channel, protocol, address, port, data): | ||
pass | ||
#factory = DccChatFactory(self, queryData=(user, channel, data)) | ||
#reactor.connectTCP(address, port, factory) |
Oops, something went wrong.