src/protocols/irc/msgs.c

changeset 10504
eae130eefbfe
parent 10246
aa5bff72f94c
child 10551
9a6a1e333609
equal deleted inserted replaced
10503:6f6f0b990441 10504:eae130eefbfe
222 222
223 g_snprintf(buffer, sizeof(buffer), 223 g_snprintf(buffer, sizeof(buffer),
224 _("Buddy Information for %s"), irc->whois.nick); 224 _("Buddy Information for %s"), irc->whois.nick);
225 gaim_notify_userinfo(gc, irc->whois.nick, NULL, buffer, NULL, str, NULL, NULL); 225 gaim_notify_userinfo(gc, irc->whois.nick, NULL, buffer, NULL, str, NULL, NULL);
226 226
227 g_free(irc->whois.nick);
227 g_free(str); 228 g_free(str);
228 memset(&irc->whois, 0, sizeof(irc->whois)); 229 memset(&irc->whois, 0, sizeof(irc->whois));
229 } 230 }
230 231
231 void irc_msg_list(struct irc_conn *irc, const char *name, const char *from, char **args) 232 void irc_msg_list(struct irc_conn *irc, const char *name, const char *from, char **args)
734 else *end = '1'; 735 else *end = '1';
735 736
736 buf = irc_format(irc, "vn", "NICK", newnick); 737 buf = irc_format(irc, "vn", "NICK", newnick);
737 irc_send(irc, buf); 738 irc_send(irc, buf);
738 g_free(buf); 739 g_free(buf);
740 g_free(newnick);
739 } 741 }
740 742
741 void irc_msg_notice(struct irc_conn *irc, const char *name, const char *from, char **args) 743 void irc_msg_notice(struct irc_conn *irc, const char *name, const char *from, char **args)
742 { 744 {
743 char *newargs[2]; 745 char *newargs[2];

mercurial