mIRC Home    About    Download    Register    News    Help

Print Thread
#111888 19/02/05 08:45 PM
Joined: Feb 2005
Posts: 194
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
Hey. I'm trying to write a code to do this: When the ownerkey is changed, it sets %pass to whatever it was set to. The only problem is that there is no on Prop. Any ideas?


"God sometimes puts us in the dark for us to see the light"
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
It's raw prop, not on prop. wink


New username: hixxy
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Indeed, it's raw PROP. See /help raw events under Examples.

Code:
raw PROP:*:{
  echo -ste * PROP change detected: $1-
}

Joined: Feb 2005
Posts: 194
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
ok. But how do i specify which prop. EX: ownerkey, hostkey. ?


"God sometimes puts us in the dark for us to see the light"
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
raw PROP:*:{
  if ($1 == ownerkey) { set %pass $2 }
}


New username: hixxy

Link Copied to Clipboard