mirror of
https://github.com/znc/znc.git
synced 2026-05-04 20:42:33 +02:00
Add OnSendToIRCMessage and OnSendToClientMessage
This also alters PutClient such that the CMessage variant handles sending messages, rather than the CString variant. As a side bonus, this gives callers better information on whether the message was sent to the client. Additionally, it eliminates the need for a hook to let modules set the tags sent to a client, as that can now be done inside OnSendToClientMessage.
This commit is contained in:
@@ -655,6 +655,12 @@ class Module:
|
||||
def OnUnknownUserRawMessage(self, msg):
|
||||
pass
|
||||
|
||||
def OnSendToClientMessage(self, msg):
|
||||
pass
|
||||
|
||||
def OnSendToIRCMessage(self, msg):
|
||||
pass
|
||||
|
||||
|
||||
def make_inherit(cl, parent, attr):
|
||||
def make_caller(parent, name, attr):
|
||||
|
||||
Reference in New Issue
Block a user