diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2011-12-26 11:51:19 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2011-12-26 11:51:19 +0100 |
commit | 5f40da79f78e444f08387ce53da1b2e471c8552f (patch) | |
tree | ceded3c147f55b819e11503e91cc4d9e75bbcd43 /irc_im.c | |
parent | 96f954df218e81f5580257c319b91217dac2f4bf (diff) | |
parent | 644b8080349d7d42ca89946acc207592fd0acc2d (diff) |
Merging oauth-xmpp branch, which adds support for OAuth2 authentication
against some XMPP services (Google Talk, Facebook and Microsoft's MSN-XMPP
gateway).
Diffstat (limited to 'irc_im.c')
-rw-r--r-- | irc_im.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -441,9 +441,13 @@ static gboolean bee_irc_user_privmsg( irc_user_t *iu, const char *msg ) static gboolean bee_irc_user_privmsg_cb( gpointer data, gint fd, b_input_condition cond ) { irc_user_t *iu = data; - char *msg = g_string_free( iu->pastebuf, FALSE ); + char *msg; GSList *l; + msg = g_string_free( iu->pastebuf, FALSE ); + iu->pastebuf = NULL; + iu->pastebuf_timer = 0; + for( l = irc_plugins; l; l = l->next ) { irc_plugin_t *p = l->data; @@ -469,8 +473,6 @@ static gboolean bee_irc_user_privmsg_cb( gpointer data, gint fd, b_input_conditi bee_user_msg( iu->irc->b, iu->bu, msg, 0 ); g_free( msg ); - iu->pastebuf = NULL; - iu->pastebuf_timer = 0; return FALSE; } |