mIRC Home    About    Download    Register    News    Help

Print Thread
#44666 28/08/03 08:14 PM
Joined: Feb 2003
Posts: 143
N
naki Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: Feb 2003
Posts: 143
I am making a spamkill service for the network I help run, and started it, but I noticed it doesnt echo to the window I have set and cant figure out why.

Code:
alias sk_open { sockopen spamkill %sk!!serv %sk!!port }
on 1:sockopen:spamkill:{
  window -zk0 @spamkill
  sk_reg
}

on 1:sockread:spamkill:{
  sockread -f %sk_raw
  .signal -n sk_read $sockname %sk_raw 
}

on 1:singal:sk_read:{
  if ($2 == ping) { .signal -n sk_ping $3 | halt }
  echo @spamkill 04 $1-
}

on *:signal:sk_ping:{ sk_com pong $remove($1,:) }

alias sk_reg { 
  sock_com pass %sk!!spass
  sock_com server %sk!!sn 10 : $+ %sk!!sun
}

alias sock_com { sockwrite -tn spamkill $1- }



We don't just write the scripts, we put them to the test! (ScriptBusters)
#44667 28/08/03 09:15 PM
Joined: Feb 2003
Posts: 79
A
Babel fish
Offline
Babel fish
A
Joined: Feb 2003
Posts: 79
on 1:singal :sk_read:{
if ($2 == ping) { .signal -n sk_ping $3 | halt }
echo @spamkill 04 $1-
}

check ur spelling. =)


Link Copied to Clipboard