Fix isSelf user checking
Other users with the same username are not self. The fun effect of this was that I could tab-complete "june_" but not "june".weechat-hashes
parent
a1bb27ae01
commit
fec5e51d78
1
handle.c
1
handle.c
|
@ -76,7 +76,6 @@ static void shift(
|
||||||
|
|
||||||
static bool isSelf(const char *nick, const char *user) {
|
static bool isSelf(const char *nick, const char *user) {
|
||||||
if (!user) return false;
|
if (!user) return false;
|
||||||
if (!strcmp(user, self.user)) return true;
|
|
||||||
if (!strcmp(nick, self.nick)) {
|
if (!strcmp(nick, self.nick)) {
|
||||||
if (strcmp(user, self.user)) selfUser(user);
|
if (strcmp(user, self.user)) selfUser(user);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue