mIRC Home    About    Download    Register    News    Help

Print Thread
help on 1:text #168130 04/01/07 04:37 AM
Joined: Dec 2006
Posts: 16
S
SithLORD Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Dec 2006
Posts: 16
on 1:text:*:#: {
.if $1 iswm putos { .echo -a putos | mode # +b $nick | kick # $nick has dicho $1 }
.if $1 iswm cojer { .echo -a caca | mode #chaco-corrientes +b $nick | kick # $nick has dicho $1 }
.if $1 iswm pijas { .echo -a caca | mode #chaco-corrientes +b $nick | kick # $nick has dicho $1 }
}

i have this code , how can i made in one line?

thanx


Re: help on 1:text [Re: SithLORD] #168133 04/01/07 06:46 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I think you've hit upon a combination that can't be done as a single line. Even if it can, I fail to see why you would want to.
If you're thinking that it would process faster, I seriously have my doubts that there's going to be much if any difference, and strongly suspect that the job of parsing a single line with all those combinations and possibilities would actually take longer than as you currently have it.

Off topic a bit, you do have some coding errors. I would suggest re-doing it as follows

Code:
on 1:text:*:#:{
  if putos isin $1 { echo -a putos | ban -ku $chan $nick $nick has dicho $1 }
  elseif (cojer isin $1) || (pijas isin $1) { echo -a caca | ban -ku #chaco-corrientes $nick $nick has dicho $1 }
}


Re: help on 1:text [Re: RusselB] #168184 04/01/07 11:33 PM
Joined: Dec 2006
Posts: 16
S
SithLORD Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Dec 2006
Posts: 16
thnx so much