From 3626958f1e998ef9c437c4aa7a10a28cfabdf1ff Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Mon, 27 Apr 2020 00:58:48 -0400 Subject: [PATCH] also exempt operators from LIST restrictions --- irc/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/handlers.go b/irc/handlers.go index 2933cc50..dbcb6793 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -1409,7 +1409,7 @@ func languageHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb * // LIST [{,}] [{,}] func listHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool { config := server.Config() - if time.Since(client.ctime) < config.Channels.ListDelay && client.Account() == "" { + if time.Since(client.ctime) < config.Channels.ListDelay && client.Account() == "" && !client.HasMode(modes.Operator) { remaining := time.Until(client.ctime.Add(config.Channels.ListDelay)) csNotice(rb, fmt.Sprintf(client.t("This server requires that you wait %v after connecting before you can use /LIST. You have %v left."), config.Channels.ListDelay, remaining)) rb.Add(nil, server.name, RPL_LISTEND, client.Nick(), client.t("End of LIST"))