mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-02 14:53:14 +02:00
Fix looking up the wrong extban in some cases.
~T => ~text => starts with ~t => ~time... fun.
This commit is contained in:
@@ -372,9 +372,9 @@ char *extban_modeT_conv_param(BanContext *b, Extban *extban)
|
||||
|
||||
/* Rebuild the string.. can be cut off if too long. */
|
||||
#ifdef UHOSTFEATURE
|
||||
snprintf(retbuf, sizeof(retbuf), "~T:%s:%s:%s", uhost, action, text);
|
||||
snprintf(retbuf, sizeof(retbuf), "%s:%s:%s", uhost, action, text);
|
||||
#else
|
||||
snprintf(retbuf, sizeof(retbuf), "~T:%s:%s", action, text);
|
||||
snprintf(retbuf, sizeof(retbuf), "%s:%s", action, text);
|
||||
#endif
|
||||
return retbuf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user