mIRC Home    About    Download    Register    News    Help

Print Thread
#187029 30/09/07 03:13 AM
Joined: May 2003
Posts: 22
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2003
Posts: 22
I had to reformat and lost all my info

the one script I had would watch for certain strings (ie nick word word word) and if anyone said them would msg a bot to kick ban them.

Thanks for anyones help on this smile


ShadowWlf
Server Administrator Rancho.ForeverChat.net
ShadowWlf #187031 30/09/07 03:15 AM
Joined: Apr 2007
Posts: 228
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
Are you trying to say that there's a certain nickname that can't say words? Or no-one can say the words? Perhaps something like:

Code:
on *:TEXT:*:#: {
if ($1 isin badword badword badword badword { /kick $chan $nick optionalkickreasonhere


I don't know if that's valid or not, but I think it's a pretty good shot.

Last edited by Mpot; 30/09/07 03:21 AM.
Mpot #187032 30/09/07 03:19 AM
Joined: May 2003
Posts: 22
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2003
Posts: 22
there's one on the network I'm on in the chan I'm on that spouts the same lines and flood the channel over and over-mainly wantign it to catch the key words in his spouting and have it trigger to ban through Unets X


ShadowWlf
Server Administrator Rancho.ForeverChat.net
ShadowWlf #187033 30/09/07 03:23 AM
Joined: Apr 2007
Posts: 228
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
In that case(again, hoping on the validity):

Code:
on *:TEXT:*:#: {
if ($nick == shitlistednickname && $1 isin badword badword badword badword) { /msg nickname message }

Last edited by Mpot; 30/09/07 03:24 AM.
Mpot #187035 30/09/07 03:25 AM
Joined: May 2003
Posts: 22
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2003
Posts: 22
that is close but the one uses proxies and changes nicks so has to be global for the nick and host frown

makes it a pain


ShadowWlf
Server Administrator Rancho.ForeverChat.net
ShadowWlf #187036 30/09/07 03:27 AM
Joined: Apr 2007
Posts: 228
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
Er, how do you expect to track a single guy if he changes nicknames and hostmasks? The only way you can is to do a blanket ban on those certain words for any nickname.

Code:
on *:TEXT:*:#: {
if ($nick == $1 isin badword badword badword badword) { /msg nickname message }
}

Last edited by Mpot; 30/09/07 03:28 AM.
Mpot #187038 30/09/07 03:28 AM
Joined: May 2003
Posts: 22
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2003
Posts: 22
that looks like what was wanting for a temp solution since this ass is so persistant

Thanks


but not quite-if is in one chan and says the "badwords"

editedagain

nm I got it I THINK

Last edited by ShadowWlf; 30/09/07 03:31 AM.

ShadowWlf
Server Administrator Rancho.ForeverChat.net
ShadowWlf #187039 30/09/07 03:30 AM
Joined: Apr 2007
Posts: 228
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
Er, wait, I botched that up a bit. Corrected:

Code:
on *:TEXT:*:#: {
if ($1 isin badword badword badword badword) { /msg nickname message }
}


Again, let me emphasize that this SHOULD work, but I'm not quite that confident in my abilities. Tell me how it goes!

Mpot #187043 30/09/07 03:39 AM
Joined: Apr 2007
Posts: 228
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
Oh, you only want it for one channel?

Quote:
on *:TEXT:*:#: {
if ($nick == $1 isin badword badword badword badword) { /msg nickname message }
}


Quote:
on *:TEXT:*:#yourchannelhere: {
if ($nick == $1 isin badword badword badword badword) { /msg nickname message }
}


Anyone care to tell me if I completely frakked this? Deegee, Riamus?

Last edited by Mpot; 30/09/07 03:41 AM.
Mpot #187048 30/09/07 03:52 AM
Joined: May 2003
Posts: 22
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2003
Posts: 22
the nickname to be msging is X on Unet I think got it but chans dead so can't verify it yet frown loading another client to test even if I get myself caught in th eban on my own host lol


ShadowWlf
Server Administrator Rancho.ForeverChat.net
ShadowWlf #187050 30/09/07 03:55 AM
Joined: Apr 2007
Posts: 228
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
Quote:
on *:TEXT:*:#yourchannelhere: {
if ($nick == $1 isin badword badword badword badword) { /msg X commands }
}



Last edited by Mpot; 30/09/07 04:01 AM.
ShadowWlf #187053 30/09/07 04:04 AM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Are you looking for something like your post here?

deegee #187054 30/09/07 04:08 AM
Joined: Apr 2007
Posts: 228
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
Originally Posted By: deegee
Are you looking for something like your post here?


Awww, nuts. I made that for nothing? XD

deegee #187057 30/09/07 04:18 AM
Joined: May 2003
Posts: 22
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2003
Posts: 22
no not that one-though I'm still working on that

but something that when someone in one chan says 2 or 3 certain words in (one sentence) one chan it'll trigger it and set a 1hr ban on that nick/host

Last edited by ShadowWlf; 30/09/07 04:21 AM.

ShadowWlf
Server Administrator Rancho.ForeverChat.net
ShadowWlf #187058 30/09/07 04:22 AM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
You could try this script

ShadowWlf #187059 30/09/07 04:25 AM
Joined: Apr 2007
Posts: 228
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
Code:
on *:TEXT:*:#channel:{
if (badword badword iswm $1-) { /ban -ku3600 $nick 5 }
} 


EDIT: Maybe isin would work better than iswm? And use || for OR to separate the words?

Last edited by Mpot; 30/09/07 04:32 AM.
Mpot #187060 30/09/07 04:41 AM
Joined: Apr 2007
Posts: 228
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
I think this is perfect:

Code:
on *:TEXT:*:#channel:{
  if (fuck || shit || damn || bitch isin $1-) { /ban -kzu3600 $chan $nick 5 }
} 


Will ban them for an hour if fuck OR shit OR damn OR bitch are in what they say.

Anyhow, I'm off to bed for the night.

Last edited by Mpot; 30/09/07 04:42 AM.
Mpot #187066 30/09/07 06:12 AM
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
Bad format for the if.

Mpot #187097 30/09/07 01:32 PM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Originally Posted By: Mpot

Will ban them for an hour if * OR * OR damn OR bitch are in what they say.


Actually it wil ban everyone who posts anything crazy
This is how its interpreted...
Code:
  if (string) { ban -kzu3600 $chan $nick 5 }
  elseif (string) { ban -kzu3600 $chan $nick 5 }
  elseif (string) { ban -kzu3600 $chan $nick 5 }
  elseif (word isin $1-) { ban -kzu3600 $chan $nick 5 }

...the first 3 are always true, because they are just strings, not comparisons or something that can return a non $false/NULL/0 value. The script will never even get to the first elseif.
Try it from an editbox, //if (word1 || word2 || word3 || word4 isin $1-) { echo -ag whoops! }

Also, there isn't a -z switch for /ban
/ban [-kruN] [#channel] <nickname|address> [type]

deegee #187122 30/09/07 04:12 PM
Joined: Apr 2007
Posts: 228
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
Er, then how would I do it properly?


Link Copied to Clipboard