mIRC Home    About    Download    Register    News    Help

Print Thread
on ownerkey change evert #111888 19/02/05 08:45 PM
Joined: Feb 2005
Posts: 194
A
alhammer Offline OP
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"
Re: on ownerkey change evert #111889 19/02/05 08:53 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
It's raw prop, not on prop. wink


New username: hixxy
Re: on ownerkey change evert #111890 19/02/05 08:59 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
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-
}

Re: on ownerkey change evert #111891 19/02/05 09:04 PM
Joined: Feb 2005
Posts: 194
A
alhammer Offline OP
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"
Re: on ownerkey change evert #111892 19/02/05 09:23 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
raw PROP:*:{
  if ($1 == ownerkey) { set %pass $2 }
}


New username: hixxy