realJoshByrnes / IRC2017

Public bug tracker for IRC2017 (irc.irc7.com)
0 stars 0 forks source link

Incorrect mode behaviour #23

Closed Liam0306 closed 7 years ago

Liam0306 commented 7 years ago

User had no other modes, server sends -q when it shouldn't.

-> TK2CHATCHATA01 MODE %#The\bLobby -o >Skyweb_92994 <- :'Lіам!~Sysop_Cascade@cg MODE %#The\bLobby -q >Skyweb_92994 <- :'Lіам!~Sysop_Cascade@cg MODE %#The\bLobby -o >Skyweb_92994

Is the same if you +o or -o, other modes (-q,+q,+v,-v) seem fine i think, only should be sending -q if the user had owner.

jyonxo commented 7 years ago

Bug occurred if an IRCOp level deops another user. It would consider if the IRCOp was admin, and then set -q accordingly to TargetUser.

Fix was to change IRCOp user to TargetUser in conditional if statement