Change sed_encrypt_msg() so it doesn't modify the passed message in-place

This means the calling code in commands.c no longer needs to take a copy before calling the function.

Also remove code testing result of of ctcp_quote_it() and ctcp_unquote_it() - these functions never fail.
This commit is contained in:
Kevin Easton
2017-06-28 23:03:58 +10:00
parent 3c2028e167
commit 57827008a1
3 changed files with 22 additions and 37 deletions

View File

@@ -71,7 +71,7 @@ extern char * do_notice_ctcp (char *, char *, char *);
extern int in_ctcp (void);
extern void send_ctcp (int, char *, int, char *, ...);
extern int get_ctcp_val (char *);
extern char *sed_encrypt_msg(char *, const char *);
extern char *sed_encrypt_msg(const char *, const char *);
extern char *sed_decrypt_msg(const char *, const char *);
void BX_split_CTCP (char *, char *, char *);