mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Python: Use znc.Socket if no socket class is specified in CreateSocket()
Thanks to Azelphur for giving this idea.
This commit is contained in:
@@ -163,7 +163,7 @@ class Module:
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user