X-Git-Url: http://git.harvie.cz/?p=mirrors%2Flibpurple-core-answerscripts.git;a=blobdiff_plain;f=answerscripts.c;h=d562e51687bf4c06a4a046047dd423298f44cda8;hp=7938538f1bb14582aee369665d63614278b61170;hb=5b15396b3dbbe2f2f74bdf36f19f88e658a5ca50;hpb=6b8234e84896f5a6c5d002c05e91f152b2d4fd82 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);