Ver código fonte

Update BT.PrvCmds.tcl

BLaCkShaDoW 3 anos atrás
pai
commit
65a2044188
1 arquivos alterados com 9 adições e 6 exclusões
  1. 9 6
      BlackTools/Commands/BT.PrvCmds.tcl

+ 9 - 6
BlackTools/Commands/BT.PrvCmds.tcl

@@ -1665,15 +1665,18 @@ if {$mychan_use == "1"} {
 
 private {
 if {[matchattr $hand nmo|M $chan]} {
-	set type 2
+	set type 1
 	set chan1 "$chan"
 	set why [lindex [split $arg] 2]
 	set user [lindex [split $arg] 3]
-if {$mychan_use == "1"} {
-	set why [lindex [split $arg] 1]
-	set user [lindex [split $arg] 2]
-}
-	private:process $nick $input $hand $chan $chan1 $why $user $type
+	set uhost [lindex [split $arg] 4]
+if {[regexp {^[&#]} $why] && [matchattr $hand nmo|M $chan]} {
+	set chan "$why"
+	set why [lindex [split $arg] 3]
+	set user [lindex [split $arg] 4]
+	set uhost [lindex [split $arg] 5]
+		}
+private:process $nick $host $hand $chan $chan1 $why $user $uhost $type
 	}
 }