mcabber/mcabber/xmpp_muc.c
changeset 2347 db8de1b464d3
parent 2346 7921c8d671c8
child 2358 b010ffcae282
equal deleted inserted replaced
2346:7921c8d671c8 2347:db8de1b464d3
   120   LmMessage *x;
   120   LmMessage *x;
   121   LmMessageNode *y;
   121   LmMessageNode *y;
   122   gchar *roomid;
   122   gchar *roomid;
   123   GSList *room_elt;
   123   GSList *room_elt;
   124 
   124 
   125   if (!xmpp_is_online() || !room)
   125   if (!xmpp_is_online() || !room || !nickname)
   126     return;
   126     return;
   127   if (!nickname)        return;
       
   128 
   127 
   129   roomid = g_strdup_printf("%s/%s", room, nickname);
   128   roomid = g_strdup_printf("%s/%s", room, nickname);
   130   if (check_jid_syntax(roomid)) {
   129   if (check_jid_syntax(roomid)) {
   131     scr_LogPrint(LPRINT_NORMAL, "<%s/%s> is not a valid Jabber room", room,
   130     scr_LogPrint(LPRINT_NORMAL, "<%s/%s> is not a valid Jabber room", room,
   132                  nickname);
   131                  nickname);