mIRC Home    About    Download    Register    News    Help

Print Thread
#111802 19/02/05 05:23 AM
Joined: Feb 2005
Posts: 194
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
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?


"God sometimes puts us in the dark for us to see the light"
#111803 19/02/05 06:07 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
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


The Kodokan will move you, one way or another.
#111805 19/02/05 07:12 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Cheers man. grin

#111806 19/02/05 07:35 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
probably be better in a kick return though
but like i said a nice little "trick"
cheers back at you.


The Kodokan will move you, one way or another.
#111807 19/02/05 08:47 PM
Joined: Feb 2005
Posts: 194
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
Thanks Slade_Kraven!!! grin


"God sometimes puts us in the dark for us to see the light"
#111808 20/02/05 11:16 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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