Skip to content

Commit 8369533

Browse files
authored
lockserv.c - Deny 'AUTH' SASL emulation
This update makes it so that users also cannot use `AUTH` (sasl for clients who don't support sasl)
1 parent c253322 commit 8369533

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

files/lockserv.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module
2828

2929
ModuleHeader MOD_HEADER = {
3030
"third/lockserv",
31-
"1.0",
31+
"1.1",
3232
"Adds the /lockserv command which allows privileged server operators to prevent connections to a particular server.",
3333
"Valware",
3434
"unrealircd-6",
@@ -151,6 +151,7 @@ MOD_INIT() {
151151
CommandAdd(modinfo->handle, MSG_LOCKSERV, cmd_lockserv, MAXPARA, CMD_OPER | CMD_SERVER);
152152
CommandAdd(modinfo->handle, MSG_UNLOCKSERV, cmd_unlockserv, 1, CMD_OPER | CMD_SERVER);
153153
CommandOverrideAdd(modinfo->handle, "CAP", 0, lockserv_cap_ovr);
154+
CommandOverrideAdd(modinfo->handle, "AUTH", 0, lockserv_cap_ovr);
154155

155156

156157
return MOD_SUCCESS;
@@ -383,7 +384,9 @@ void lockserv_list(Client *client)
383384
}
384385

385386
/* if for some reason we didn't catch them because they connected without caps (is it even possible?)
386-
* not to worry we'll catch them a little later */
387+
* not to worry we'll catch them a little later
388+
* Will also override 'AUTH'
389+
*/
387390
CMD_OVERRIDE_FUNC(lockserv_cap_ovr)
388391
{
389392
Client *server = find_server(me.name, NULL);

0 commit comments

Comments
 (0)