ts6:cput "NOTICE $uid :\[$chan\] $msg"
}
+proc ts6:kill {uid msg} {
+ global myserv
+ ts6:log "Killing user [uid:get $uid NICK *]{$uid} ($msg)"
+ ts6:sput "KILL $uid :$myserv ($msg)"
+ uid:forget $uid
+}
+
proc ts6:log {msg} {
global ts6-eob
putlog $msg
set nick [lindex $input 1]
set uid [lindex $input 8]
+ if {[ts6:myuid $nick] || [ts6:myuid $uid]} {
+ ts6:kill $uid "Impostor!"
+ return 1
+ }
+
ts6:log "User: $nick{$uid} via [sid:get $prefix SERVER]{$prefix}"
uid:set $uid NICK $nick
uid:set $uid USERNAME [lindex $input 5]
NICK {
set oldnick [ts6:uid2nick $prefix]
set newnick [lindex $input 1]
+
+ if {[ts6:myuid $newnick]} {
+ ts6:kill $prefix "Impostor!"
+ return 1
+ }
+
ts6:changed-nick $oldnick $newnick $prefix
dccputchan 0 "$oldnick is now known as $newnick"
}
set nick [lindex $input 1]
set uid [lindex $input 8]
+ if {[ts6:myuid $nick] || [ts6:myuid $uid]} {
+ ts6:kill $uid "Impostor!"
+ return 1
+ }
+
ts6:log "User: $nick{$uid} via [sid:get $prefix SERVER]{$prefix}"
uid:set $uid NICK $nick
uid:set $uid USERNAME [lindex $input 5]