extsay-ng/extsayng.c
changeset 31 816373e58b6c
parent 30 7738b1e4714d
equal deleted inserted replaced
30:7738b1e4714d 31:816373e58b6c
   123     args = (gchar*)buddy_getjid(bud);
   123     args = (gchar*)buddy_getjid(bud);
   124     if (expandfjid && *res) {
   124     if (expandfjid && *res) {
   125       char *res_utf8 = to_utf8(res);
   125       char *res_utf8 = to_utf8(res);
   126       fjid = g_strdup_printf("%s%c%s", args, JID_RESOURCE_SEPARATOR, res_utf8);
   126       fjid = g_strdup_printf("%s%c%s", args, JID_RESOURCE_SEPARATOR, res_utf8);
   127       g_free(res_utf8);
   127       g_free(res_utf8);
       
   128     } else {
       
   129       fjid = g_strdup(args);
   128     }
   130     }
   129   } else {
   131   } else {
   130     fjid = to_utf8(args);
   132     fjid = to_utf8(args);
   131   }
   133   }
   132 
   134