Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/roster.c @ 649:3ad6675caaf1
MUC: fix join bug when the conference is in the roster
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 07 Jan 2006 01:15:04 +0100 |
parents | 68fb0c1dfb15 |
children | b243d3b3ff1b |
comparison
equal
deleted
inserted
replaced
648:16cd6c858a5d | 649:3ad6675caaf1 |
---|---|
821 // Only for chatrooms | 821 // Only for chatrooms |
822 void buddy_setnickname(gpointer rosterdata, const char *newname) | 822 void buddy_setnickname(gpointer rosterdata, const char *newname) |
823 { | 823 { |
824 roster *roster_usr = rosterdata; | 824 roster *roster_usr = rosterdata; |
825 | 825 |
826 if (!(roster_usr->type & ROSTER_TYPE_ROOM)) return; | 826 if (!(roster_usr->type & ROSTER_TYPE_ROOM)) return; // XXX Error message? |
827 | 827 |
828 if (roster_usr->nickname) { | 828 if (roster_usr->nickname) { |
829 g_free((gchar*)roster_usr->nickname); | 829 g_free((gchar*)roster_usr->nickname); |
830 roster_usr->nickname = NULL; | 830 roster_usr->nickname = NULL; |
831 } | 831 } |