dialog unban { title "Globally Unban" size -1 -1 201 130 option dbu edit "", 1, 42 25 159 10 text "Nick/Hostmask", 2, 1 26 41 8, center edit "", 3, 42 48 158 10 text "Reason", 4, 0 48 42 8, center button "Unblacklist", 9, 22 87 37 12, ok button "Cancel", 6, 141 87 37 12, cancel menu "Ban", 8 } on *:Dialog:unban:sclick:9:{ var %x = 1 if ($me isop $chan) || ($me ishop $chan) { while (%x <= $chan(0)) { mode $chan(%x) -b $did($dname,1) | inc %x } } msg $chan(%x) Globally unbanning: $did(1) because: $did($dname,3) else { msg $chan(%x) I do not have the right to unban $did($dname,1) in this channel, but I ask that an Op/Halfop do it. } }