-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Found by: mortmann Patch by: thommey Fixes: #1599
- Loading branch information
Showing
4 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,6 +116,8 @@ static void setaccount(char *nick, char *account) | |
} | ||
} | ||
} | ||
/* Username for nick could be different after account change, invalidate cache */ | ||
clear_chanlist_member(nick); | ||
} | ||
|
||
/* Returns the current channel mode. | ||
|
@@ -1220,7 +1222,7 @@ static int got354(char *from, char *msg) | |
* :[email protected] CHGHOST tehgeo foo.io | ||
* changes user hostmask to [email protected] | ||
*/ | ||
static int gotchghost(char *from, char *msg){ | ||
static int gotchghost(char *from, char *msg) { | ||
struct flag_record fr = { FR_GLOBAL | FR_CHAN, 0, 0, 0, 0, 0 }; | ||
struct userrec *u; | ||
struct chanset_t *chan; | ||
|
@@ -1247,6 +1249,8 @@ static int gotchghost(char *from, char *msg){ | |
check_this_member(chan, m->nick, &fr); | ||
} | ||
} | ||
/* Username for nick could be different after host change, invalidate cache */ | ||
clear_chanlist_member(nick); | ||
return 0; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters