Browse Source

fix incorrect permissions check in NS CLIENTS LOGOUT

tags/v2.5.1^2
Shivaram Lingamneni 3 years ago
parent
commit
de392aea5a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      irc/nickserv.go

+ 1
- 1
irc/nickserv.go View File

@@ -1148,7 +1148,7 @@ func nsClientsLogoutHandler(service *ircService, server *Server, client *Client,
1148 1148
 		// User must have "kill" privileges to logout other user sessions.
1149 1149
 		if target != client {
1150 1150
 			oper := client.Oper()
1151
-			if oper.HasRoleCapab("kill") {
1151
+			if !oper.HasRoleCapab("kill") {
1152 1152
 				service.Notice(rb, client.t("Insufficient oper privs"))
1153 1153
 				return
1154 1154
 			}

Loading…
Cancel
Save