mIRC Home    About    Download    Register    News    Help

Print Thread
theme system #111216 13/02/05 08:41 PM
Joined: Jan 2005
Posts: 19
M
malis Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jan 2005
Posts: 19
Every time it says the same as the one which is being kicked.
on ^*:kick:#: {
echo $chan $form.kick($nick, $address, $chan, $1-)
haltdef
}
alias form.devoice return 3[ $time(H:nn) ] 0,3Kick0,03 $nick ( $+ $2 $+ ) was kicked by $4-

Re: theme system #111217 13/02/05 08:55 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Quote:
Every time it says the same as the one which is being kicked.
on ^*:kick:#: {
echo $chan $form.kick($nick, $address, $chan, $1-)
haltdef
}
alias form.devoice return 3[ $time(H:nn) ] 0,3Kick0,03 $nick ( $+ $2 $+ ) was kicked by $4-


alias form.devoice is not being used alias form.kick is.

Also form.devoice and/or form.kick should not refrence $nick, but should use, if passed in the same manner $1 as this is the $nick, you may at a latter date decided to enhance you display by say going $form.kick(**** $nick ****, $address, $chan, $1-), if you continue to use $nick and not $1 then u loose the alterations you may choose to add to the nick. Also form.devoice and/or form.kick become harder to debug/test as you can not run them from the command line passing simulated information to them, as $nick well have no value.

Last edited by DaveC; 13/02/05 09:01 PM.
Re: theme system #111218 13/02/05 09:19 PM
Joined: Jan 2005
Posts: 19
M
malis Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jan 2005
Posts: 19
I fixed that but when i kick someone it dispalys my name and is says as belows intead of the nick i kicked.
Kick Ace (~at@83-70-79-2.b-ras1.srl.dublin.eircom.net) was kicked by Ace

Re: theme system #111219 13/02/05 09:32 PM
Joined: Jun 2003
Posts: 5,024
M
Mentality Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
I would guess you're using $nick at both points. $knick refers to the nickname of the user being kicked, $nick refers to the nickname of the person doing the kicking.

Regards,


Mentality/Chris
Re: theme system #111220 13/02/05 09:39 PM
Joined: Jan 2005
Posts: 19
M
malis Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jan 2005
Posts: 19
THANK YOU

Re: theme system #111221 13/02/05 09:44 PM
Joined: Jan 2005
Posts: 19
M
malis Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jan 2005
Posts: 19
But the only thing now is it does not say on my script **you were kicked by someone

Re: theme system #111222 13/02/05 10:01 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
That's because the channel window is closed when you're kicked.

Code:
on ^*:kick:#: {
  echo [color:red]$iif($knick == $me,-s,[/color]$chan[color:red])[/color] $form.kick($nick, $address, $chan, $1-)
  haltdef
}


New username: hixxy
Re: theme system #111223 14/02/05 05:19 PM
Joined: Jan 2005
Posts: 19
M
malis Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jan 2005
Posts: 19
tnx

Re: theme system #111224 14/02/05 06:46 PM
Joined: Jan 2005
Posts: 19
M
malis Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jan 2005
Posts: 19
Is there any other way to crete the script so it says in the channel Kick Ace was kicked by Doug and when it kicks you it says you were kicked form the channel by someone displayed in status>

Re: theme system #111225 14/02/05 11:59 PM
Joined: Feb 2005
Posts: 34
K
k1tkra04 Offline
Ameglian cow
Offline
Ameglian cow
K
Joined: Feb 2005
Posts: 34
This is what I use, and it does what you want smile

Code:
on ^1:KICK:#:{
  if ($knick == $me) { echo -s You were kicked from $chan by $nick | halt | .return }
  echo #  14[15 $+ $knick $+ 14] was kicked by 14[15 $+ $nick $+ 14] 
  halt
}
  

Re: theme system #111226 15/02/05 12:48 AM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Using halt is a bad idea, you should use return instead (The return you have in your code is never called)


New username: hixxy
Re: theme system #111227 15/02/05 01:18 AM
Joined: Feb 2005
Posts: 34
K
k1tkra04 Offline
Ameglian cow
Offline
Ameglian cow
K
Joined: Feb 2005
Posts: 34
Maybe so... but it works smile

Re: theme system #111228 15/02/05 11:48 AM
Joined: Jan 2005
Posts: 19
M
malis Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jan 2005
Posts: 19
Thanks very much everything works now