aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2011-12-26 11:51:19 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2011-12-26 11:51:19 +0100
commit5f40da79f78e444f08387ce53da1b2e471c8552f (patch)
treeceded3c147f55b819e11503e91cc4d9e75bbcd43 /irc_im.c
parent96f954df218e81f5580257c319b91217dac2f4bf (diff)
parent644b8080349d7d42ca89946acc207592fd0acc2d (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.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/irc_im.c b/irc_im.c
index e54842fd..a883d467 100644
--- a/irc_im.c
+++ b/irc_im.c
@@ -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;
}