소스 검색

fix incorrect permissions check in NS CLIENTS LOGOUT

tags/v2.5.1^2
Shivaram Lingamneni 3 년 전
부모
커밋
de392aea5a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      irc/nickserv.go

+ 1
- 1
irc/nickserv.go 파일 보기

@@ -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…
취소
저장