mIRC Home    About    Download    Register    News    Help

Print Thread
#53987 12/10/03 06:17 PM
Joined: Feb 2003
Posts: 48
B
brad2 Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Feb 2003
Posts: 48
I made a real simple away script that tells someone who queries me that i am away. However, every time they type a line of text, i send them back a message, which can get annoying, as some people will do it over and over and i will flood, and i get kicked off some servers for this.

Code:
  
on *:TEXT:*:?:{
  if (%awaystatus != $null) {
    /query $nick I am not here right now. Away for $duration($calc($ctime - %awaytime)) 
  }
}



How can i make this tell them i am away the first time they query me, and not do anything the next time, or after a certain period of time.

I hope I was clear on what I want to do, and that you can help me. Thanks

#53988 12/10/03 06:18 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Try using on OPEN instead.

#53989 12/10/03 06:26 PM
Joined: Feb 2003
Posts: 48
B
brad2 Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Feb 2003
Posts: 48
Thanks!

#53990 12/10/03 07:09 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Then again - you are aware that the server already sends such a message, right?


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius

Link Copied to Clipboard