mIRC Homepage

replace raw319

Posted By: BatSaly

replace raw319 - 08/08/06 06:32 AM

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 ***)
Posted By: KingTomato

Re: replace raw319 - 08/08/06 06:40 AM

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?
Posted By: BatSaly

Re: replace raw319 - 08/08/06 06:55 AM

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)
Posted By: KingTomato

Re: replace raw319 - 08/08/06 07:02 AM

maybe...

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


Don't know what to tell you.
Posted By: BatSaly

Re: replace raw319 - 08/08/06 07:13 AM

The friendly ideas and admonitions are important. I estimate highly your help.. and this of everyone of us. smile
Posted By: RusselB

Re: replace raw319 - 08/08/06 07:36 AM

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
Posted By: BatSaly

Re: replace raw319 - 08/08/06 08:25 AM

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.
Posted By: BatSaly

Re: replace raw319 - 08/08/06 08:33 AM

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.
Posted By: FNar

Re: replace raw319 - 09/08/06 09:37 PM

Maybe if we knew which server, so we could connect to it and actually see the problem?
Posted By: BatSaly

Re: replace raw319 - 13/08/06 01:49 PM

It's inner pay net.
© 2022 mIRC Discussion Forums