0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

Do not send kills for unknown prefixes which are nicks.

This can happen harmlessly in particular if a SAVE
and a nick-prefixed command crossed; then, due to
nick changes and nick chasing, it easily causes
ghosts that need a kill or split to disappear.
Most commands use UID as prefix which does not have
this problem and will destroy real ghosts soon enough.
This commit is contained in:
Jilles Tjoelker 2008-07-02 00:58:56 +02:00
parent 81c5873e97
commit ba0711fd4a

View file

@ -533,7 +533,7 @@ remove_unknown(struct Client *client_p, char *lsender, char *lbuffer)
{
int slen = strlen(lsender);
/* meepfoo is a nickname (KILL)
/* meepfoo is a nickname (ignore)
* #XXXXXXXX is a UID (KILL)
* #XX is a SID (SQUIT)
* meep.foo is a server (SQUIT)
@ -550,7 +550,7 @@ remove_unknown(struct Client *client_p, char *lsender, char *lbuffer)
get_id(&me, client_p), lsender,
lbuffer, client_p->name);
}
else
else if(IsDigit(lsender[0]))
sendto_one(client_p, ":%s KILL %s :%s (Unknown Client)",
get_id(&me, client_p), lsender, me.name);
}