Move all handling of SED messages and notices into ctcp.c, re-enable SED notices
Actual encryped messages and notices are now printed directly from do_sed() / do_reply_sed(). Inline CTCP replacement is only done if the message cannot be decrypted (for the [ENCRYPTED MESSAGE] placeholder). This removes the need for the global flag 'sed' to alter the NOTICE and PRIVMSG handling. A side-effect of this is that SED PRIVMSGs now do not go through the usual PRIVMSG ignore and flood handling. This is acceptable because messages can only go through this path if the sender has actually been added as a SED peer with /ENCRYPT, and it still goes through the CTCP ignore and flood handling.
This commit is contained in:
@@ -55,7 +55,6 @@
|
||||
extern CtcpEntryDll *dll_ctcp;
|
||||
|
||||
|
||||
extern int sed;
|
||||
extern int in_ctcp_flag;
|
||||
|
||||
#define CTCP_DELIM_CHAR '\001'
|
||||
|
||||
Reference in New Issue
Block a user