Skip to content

Commit

Permalink
Python: Use znc.Socket if no socket class is specified in CreateSocket()
Browse files Browse the repository at this point in the history
Thanks to Azelphur for giving this idea.
  • Loading branch information
Alexey Sokolov committed Nov 19, 2011
1 parent 2ffcbed commit 3fd0429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/modpython/znc.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def OnLoad(self, sArgs, sMessage):
def _GetSubPages(self):
return self.GetSubPages()

def CreateSocket(self, socketclass, *the, **rest):
def CreateSocket(self, socketclass=Socket, *the, **rest):
socket = socketclass()
socket._csock = CreatePySocket(self._cmod, socket)
socket.Init(*the, **rest)
Expand Down

0 comments on commit 3fd0429

Please sign in to comment.