Skip to content
Snippets Groups Projects
Commit cc908197 authored by cyan's avatar cyan
Browse files

* Fix a bug involving SAMODE detection

parent 22e88b02
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ function Channel(nam) {
function ChanMode_tweaktmpmode(tmp_bit,add) {
if (!this.chan.modelist[CHANMODE_OP][this.user.id] &&
!this.user.server && !this.user.uline && !this.mode&USERMODE_ADMIN) {
!this.user.server && !this.user.uline && !(this.mode&USERMODE_ADMIN)) {
this.user.numeric482(this.chan.nam);
return 0;
}
......@@ -103,7 +103,7 @@ function ChanMode_tweaktmpmode(tmp_bit,add) {
function ChanMode_tweaktmpmodelist(tmp_bit,add,arg) {
if (!this.chan.modelist[CHANMODE_OP][this.user.id] &&
!this.user.server && !this.user.uline && !this.mode&USERMODE_ADMIN) {
!this.user.server && !this.user.uline && !(this.mode&USERMODE_ADMIN)) {
this.user.numeric482(this.chan.nam);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment