mIRC Home    About    Download    Register    News    Help

Print Thread
#111802 19/02/05 05:23 AM
Joined: Feb 2005
Posts: 193
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 193
Hey. Im trying to figure out a code: When someone de-owners me, it will part the channel then join with %pass and kick the nick that deownered me. Any ideas?

#111803 19/02/05 06:07 AM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Do you mean something like;
Code:
on 1:DeOwner:#: {
  set -u60 %deowner.chan $chan
  set -u60 %deowner.nick $nick
  if ($opnick == $me) {
    part $chan
    join %deowner.chan
    <identy to chan commands>
    kick %deowner.chan %deowner.nick
  }
}

#111804 19/02/05 06:42 AM
R
ricky_knuckles
ricky_knuckles
R
i like the idea of setting the chan and nick to variables at the beginning
strike that reverse it setting variables to the chan and nick
good idea

#111805 19/02/05 07:12 AM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Cheers man. grin

#111806 19/02/05 07:35 AM
R
ricky_knuckles
ricky_knuckles
R
probably be better in a kick return though
but like i said a nice little "trick"
cheers back at you.

#111807 19/02/05 08:47 PM
Joined: Feb 2005
Posts: 193
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 193
Thanks Slade_Kraven!!! grin

#111808 20/02/05 11:16 AM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
You're welcome.

Quote:
Thanks Slade_Kraven!!! grin


//echo -a Before: Slade_Kraven!!! | tokenize 95 Slade_Kraven!!! | echo -a After: $1 $+ $2

Echoes:

Before: Slade_Kraven!!!
After: SladeKraven!!!


Link Copied to Clipboard