comparison src/protocols/irc/irc.c @ 5402:f3cf3bff72f0

[gaim-migrate @ 5778] Updated oscar's "could not add buddy for an unknown reason" message to suggest that the reason is because you have too many buddies. Removed a few unneeded memory allocations in irc.c. They were unneeded, right? Fixed up napster chat stuff. It's much simpler now. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 16 May 2003 22:33:13 +0000
parents ee2b7e4de04e
children ad445074d239
comparison
equal deleted inserted replaced
5401:e03f07e1f7f4 5402:f3cf3bff72f0
1154 if (*who == '%') 1154 if (*who == '%')
1155 who++; 1155 who++;
1156 if (*who == '+') 1156 if (*who == '+')
1157 who++; 1157 who++;
1158 if (!gaim_utf8_strcasecmp(who, nick)) { 1158 if (!gaim_utf8_strcasecmp(who, nick)) {
1159 char *tmp = g_strdup(r->data); 1159 gaim_chat_remove_user(chat, who, reason);
1160 gaim_chat_remove_user(chat, tmp, reason);
1161 g_free(tmp);
1162 break; 1160 break;
1163 } 1161 }
1164 r = r->next; 1162 r = r->next;
1165 } 1163 }
1166 } else { 1164 } else {
1790 if (*who == '%') 1788 if (*who == '%')
1791 who++; 1789 who++;
1792 if (*who == '+') 1790 if (*who == '+')
1793 who++; 1791 who++;
1794 if (!gaim_utf8_strcasecmp(who, nick)) { 1792 if (!gaim_utf8_strcasecmp(who, nick)) {
1795 char *tmp = g_strdup(r->data); 1793 gaim_chat_remove_user(chat, who, reason);
1796 gaim_chat_remove_user(chat, tmp, reason);
1797 g_free(tmp);
1798 break; 1794 break;
1799 } 1795 }
1800 r = r->next; 1796 r = r->next;
1801 } 1797 }
1802 return TRUE; 1798 return TRUE;