mIRC Home    About    Download    Register    News    Help

Print Thread
replace raw319 #155660 08/08/06 06:32 AM
Joined: Jan 2006
Posts: 15
B
BatSaly Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Jan 2006
Posts: 15
on @!1:join:#: {
.enable #badchankick
set %whoisnick $nick
set %whoischan $chan
whois $nick
}
#badchankick off
raw 319:*: {
if *aspirex* iswm $1- ban -ku300 %whoischan %whoisnick 2 Bad channel detect!
if *familysex* iswm $1- ban -ku300 %whoischan %whoisnick 2 Bad channel detect!
if *kidsex* iswm $1- ban -ku300 %whoischan %whoisnick 2 Bad channel detect!
if *childsex* iswm $1- ban -ku300 %whoischan %whoisnick 2 Bad channel detect!
if *incest* iswm $1- ban -ku300 %whoischan %whoisnick 2 Bad channel detect!
unset %whoisnick
unset %whoischan
.disable #badchankick
}
#badchankick end

I can't find a way to replace the raw319 with something other.
I'm looking for algorithm with the same purpose.
The purpose is like in the shown example.
(The reason is that.. the raws are set in random 7 times in a week
Today is 319, tomorrow is ***)

Re: replace raw319 #155661 08/08/06 06:40 AM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
You could use $numeric with a generic raw, but i don't undertsand why it would change. The irc server is basd on a protocol, and that protocol specifies the numeric the channel list(?) is reported on. Are you positive its changing?


-KingTomato
Re: replace raw319 #155662 08/08/06 06:55 AM
Joined: Jan 2006
Posts: 15
B
BatSaly Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Jan 2006
Posts: 15
Yes, sometimes it is standart 319, sometimes can be some other.. 317 for instance(like standart idle and than idle is in some other)
All probabilities.


In the most of the networks in my location I mean. (when I used the word "standart" smile)

Last edited by BatSaly; 08/08/06 07:03 AM.
Re: replace raw319 #155663 08/08/06 07:02 AM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
maybe...

Code:
raw *:*: {
  if ($istok(317 319,$numeric,32) && $chr(35) isin $1-) {
    ;...code
  }
}


Don't know what to tell you.


-KingTomato
Re: replace raw319 #155664 08/08/06 07:13 AM
Joined: Jan 2006
Posts: 15
B
BatSaly Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Jan 2006
Posts: 15
The friendly ideas and admonitions are important. I estimate highly your help.. and this of everyone of us. smile

Re: replace raw319 #155665 08/08/06 07:36 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The raw numerics are a standard set used across the entire IRC network system. If these numbers were to change, then a lot of scripts that use those numerics might be good one day, but useless the next. It makes no sense for them to change, and quite frankly the numerics that I use in my scripts are still the same as when I started coding in mIRC nearly 5 years ago.

The standard set of raw numerics can be reviewed here

Some networks use non-standard numerics for certain items, but the standards still apply to all networks and IRCd's

Re: replace raw319 #155666 08/08/06 08:25 AM
Joined: Jan 2006
Posts: 15
B
BatSaly Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Jan 2006
Posts: 15
The numeric list can be very useful for me. Thanks.
You say.. "If these numbers were to change, then a lot of scripts that use those numerics might be good one day, but useless the next."
That's right! I mean exactly this smile
In this network (in my case)the rules are day by day.There aren't aggressive scripts, but in this case there are vileness and bawdities.

Re: replace raw319 #155667 08/08/06 08:33 AM
Joined: Jan 2006
Posts: 15
B
BatSaly Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Jan 2006
Posts: 15
The code with usage of "raw 319:*: { " is useless because this numeric is different every day in this network. frown


Maybe it will be easy if I know some way to "inquire" the server which of the numerics is used at the moment for this operation.
But... I'm not mirc scripter. I don't know how to create something like this.

Last edited by BatSaly; 08/08/06 10:14 AM.
Re: replace raw319 #155668 09/08/06 09:37 PM
Joined: Mar 2004
Posts: 210
F
FNar Offline
Fjord artisan
Offline
Fjord artisan
F
Joined: Mar 2004
Posts: 210
Maybe if we knew which server, so we could connect to it and actually see the problem?

Re: replace raw319 #155669 13/08/06 01:49 PM
Joined: Jan 2006
Posts: 15
B
BatSaly Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Jan 2006
Posts: 15
It's inner pay net.