From 934db064a58ebec2edea83df4fa07e2c83220344 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 1 Sep 2010 23:09:27 +0100 Subject: Do encryption and decryption. Somehow SMP and other things aren't working so well yet, at least when testing with Pidgin on the other side. Not sure where the bug is. --- irc.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'irc.h') diff --git a/irc.h b/irc.h index 516cc959..0c8d2981 100644 --- a/irc.h +++ b/irc.h @@ -229,12 +229,16 @@ typedef struct irc_plugin /* At the end of irc_free(). */ void (*irc_free)( irc_t *irc ); + /* Problem with the following two functions is ordering if multiple + plugins are handling them. Let's keep fixing that problem for + whenever it becomes important. */ + /* Called by bee_irc_user_privmsg_cb(). Return NULL if you want to abort sending the msg. */ - char* (*filter_msg_out)( irc_user_t *iu, const char *msg, int flags ); + char* (*filter_msg_out)( irc_user_t *iu, char *msg, int flags ); /* Called by bee_irc_user_msg(). Return NULL if you swallowed the message and don't want anything to go to the user. */ - char* (*filter_msg_in)( irc_user_t *iu, const char *msg, int flags ); + char* (*filter_msg_in)( irc_user_t *iu, char *msg, int flags ); } irc_plugin_t; extern GSList *irc_plugins; /* struct irc_plugin */ -- cgit v1.2.3