mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
multi identical nick fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1263 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c3cebfd93d
commit
43323fd24c
@ -501,14 +501,9 @@ static void sig_message_topic(SERVER_REC *server, const char *channel,
|
|||||||
static int printnick_exists(NICK_REC *first, NICK_REC *ignore,
|
static int printnick_exists(NICK_REC *first, NICK_REC *ignore,
|
||||||
const char *nick)
|
const char *nick)
|
||||||
{
|
{
|
||||||
char *str;
|
|
||||||
|
|
||||||
while (first != NULL) {
|
while (first != NULL) {
|
||||||
if (first != ignore) {
|
if (first != ignore && strcmp(first->nick, nick) == 0)
|
||||||
str = g_hash_table_lookup(printnicks, first->nick);
|
|
||||||
if (str != NULL && strcmp(str, nick) == 0)
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
|
||||||
first = first->next;
|
first = first->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -556,8 +551,14 @@ static void sig_nicklist_new(CHANNEL_REC *channel, NICK_REC *nick)
|
|||||||
|
|
||||||
static void sig_nicklist_remove(CHANNEL_REC *channel, NICK_REC *nick)
|
static void sig_nicklist_remove(CHANNEL_REC *channel, NICK_REC *nick)
|
||||||
{
|
{
|
||||||
|
char *nickname;
|
||||||
|
|
||||||
|
nickname = g_hash_table_lookup(printnicks, nick);
|
||||||
|
if (nickname != NULL) {
|
||||||
|
g_free(nickname);
|
||||||
g_hash_table_remove(printnicks, nick);
|
g_hash_table_remove(printnicks, nick);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void sig_nicklist_changed(CHANNEL_REC *channel, NICK_REC *nick)
|
static void sig_nicklist_changed(CHANNEL_REC *channel, NICK_REC *nick)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user