From: Harvie Date: Tue, 28 Sep 2010 23:09:48 +0000 (+0200) Subject: Cleaned up comments a bit X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=5b15396b3dbbe2f2f74bdf36f19f88e658a5ca50;p=mirrors%2Flibpurple-core-answerscripts.git Cleaned up comments a bit --- diff --git a/answerscripts.c b/answerscripts.c index 7938538..d562e51 100755 --- a/answerscripts.c +++ b/answerscripts.c @@ -65,8 +65,6 @@ static void received_im_msg_cb(PurpleAccount *account, char *who, char *buffer, //Get message message = purple_markup_strip_html(buffer); - //printf("\nHarvie received: %s: %s\n", who, message); //debug - //purple_conv_im_send(purple_conversation_get_im_data(conv), ":-*"); //debug /* Here are prototypes of some functions interesting to implement github feature request #3 @@ -90,7 +88,7 @@ static void received_im_msg_cb(PurpleAccount *account, char *who, char *buffer, //Get protocol ID const char *protocol_id = purple_account_get_protocol_id(account); - if(!strncmp(protocol_id,PROTOCOL_PREFIX,strlen(PROTOCOL_PREFIX))) protocol_id += strlen(PROTOCOL_PREFIX); //trim out protocol prefix (eg.: "prpl-irc" => "irc") + if(!strncmp(protocol_id,PROTOCOL_PREFIX,strlen(PROTOCOL_PREFIX))) protocol_id += strlen(PROTOCOL_PREFIX); //trim out PROTOCOL_PREFIX (eg.: "prpl-irc" => "irc") //Get status PurpleStatus *status = purple_account_get_active_status(account);