Bad word kick/ban ( text , emote , notice )
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 6.0 |
| Scores Submitted | 1 |
| Date Added | Aug 13, 2007 |
| Last Updated | Oct 05, 2007 |
| Tags | bad badword badwords ban emote kick notice text word |
|
|
Introduction
Update: There is now an " on CONNECT " and Alias to help in the setting of the vairable.
Update: Changed $nick to be $address($nick,2)
Update: Added two aliases that allow you to add and removes words from the variable %badwords
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Aug 13, 2007 9:19 pm
Posted on Aug 13, 2007 9:19 pm
You don't need the /kick seeing as you are using /ban -k which will both kick them and ban them. Another suggestiong would be to make the badwords list either a global variable or a .txt or .ini file and then have an on load event which would ask the user for an initial list of words as well as having an alias, a pop up, or a dialog for the user to enter new words.
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Aug 13, 2007 10:04 pm
Posted on Aug 13, 2007 10:04 pm
Comments: 33
Posted: Aug 13, 2007 10:03 pm
--------------------------------------------------------------------------------
I changed the
| Code: |
| /ban -ku30 |
| Code: |
| /ban -u30 |
I have also changed the
| Code: |
| var %badwords Put,words,here,seperated,by,commas |
| Code: |
| set %badwords put,words,here,seperated,by,commas |
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Aug 13, 2007 10:18 pm
Posted on Aug 13, 2007 10:18 pm
Forgot these.
| Code: |
| on *:CONNECT: { set %badwords put,words,here,seperated,by,commas } |
| Code: |
| alias bdwd { set %badwords put,words,here,seperated,by,commas } |
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Aug 14, 2007 10:52 pm
Posted on Aug 14, 2007 10:52 pm
mode +G? :P
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Aug 18, 2007 1:13 pm
Posted on Aug 18, 2007 1:13 pm
@Anti - With +G they will see the badword and others will not. They will also not know that it is a " badword " unless they are told so. With this script they will know it is a " badword " and there are consequences if one uses them.
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Oct 1, 2007 9:58 pm
Posted on Oct 1, 2007 9:58 pm
Interesting approach to this, but why not use add a warning? It seems a bit harsh to directly kban, even though it's for 30 seconds. Also, why not use ban -ku30? I don't think there is a need for the timer, other than giving a two second interval. Nice job on this I like it.
--Roy
--Roy
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Oct 1, 2007 9:58 pm
Posted on Oct 1, 2007 9:58 pm
Ugh, in my last comment just remove the use in the first sentence, it's a bit late over in here.
--Roy
--Roy
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Oct 4, 2007 5:40 pm
Posted on Oct 4, 2007 5:40 pm
does an on notice trigger a $chan? also, you may not be on the same channel as the nick so use /help $comchan
shouldnt it be
?
also, use ban -ku30 $chan $nick Dont use bad language blah blah blah...
| Code: |
alias bdwd { set %badwords put,words,here,seperated,by,commas } |
shouldnt it be
| Code: |
alias bdwd if (!$istok(%badwords,$1,44)) set %badwords $addtok(%baddwords,$1,44) |
?
also, use ban -ku30 $chan $nick Dont use bad language blah blah blah...
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Oct 4, 2007 5:41 pm
Posted on Oct 4, 2007 5:41 pm
*make that
| Code: |
| ban -ku30 $chan $address($nick,2) Dont use bad language blah blah blah... |
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Oct 4, 2007 6:23 pm
Posted on Oct 4, 2007 6:23 pm
@mountaindew - I changed the $nick to be $address($nick,2) and changed the alias & on connect parts.
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Oct 4, 2007 8:22 pm
Posted on Oct 4, 2007 8:22 pm
but u should still do ban -k
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Oct 4, 2007 8:34 pm
Posted on Oct 4, 2007 8:34 pm
I think what Scakk is trying to do is establish a two second time difference on purpose. It doesn't effect the way the ban takes place, and I think a couple of you misunderstand the timer. It just gives a two second difference between the kick and the ban. At least that's what I assume.
Anyway, why do you include the ;sets in your events when you already have an alias to do so? It's also a hassle to filter the script with the badwords. How about using $$? and a $$! for confirmation and easier editing. Otherwise, neat script.
- RubixCube
Anyway, why do you include the ;sets in your events when you already have an alias to do so? It's also a hassle to filter the script with the badwords. How about using $$? and a $$! for confirmation and easier editing. Otherwise, neat script.
- RubixCube
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Oct 4, 2007 8:35 pm
Posted on Oct 4, 2007 8:35 pm
ah yes i misunderstood the timers, sorry bout that
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Oct 4, 2007 8:38 pm
Posted on Oct 4, 2007 8:38 pm
maybe like
and then like $remtok to remove
| Code: |
alias addword if (!$istok(%words,$$?="Word?",32)) set %words $addtok(%words,$!,32) |
and then like $remtok to remove
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Oct 4, 2007 8:45 pm
Posted on Oct 4, 2007 8:45 pm
| Quote: |
I think what Scakk is trying to do is establish a two second time difference on purpose. It doesn't effect the way the ban takes place, and I think a couple of you misunderstand the timer. It just gives a two second difference between the kick and the ban. At least that's what I assume. Anyway, why do you include the ;sets in your events when you already have an alias to do so? It's also a hassle to filter the script with the badwords. How about using $$? and a $$! for confirmation and easier editing. Otherwise, neat script. - RubixCube |
1) Yes. There were times where it would kick/ban the person before the message was sent and other times where the message was sent then the person was kick/ban.
2) I meant to remove the " ;set " when I added the Alias and on CONNECT parts
@mountaindew -- I will work on an Alias for adding and removing words and post it here when I get it finished.
mIRC Snippet:
Bad word kick/ban ( text , emote , notice )
Posted on Oct 5, 2007 12:37 am
Posted on Oct 5, 2007 12:37 am
Added the below Aliases
| Code: |
alias addword { if (!$1) { echo Please specify something to be added. | halt } var %i 1 while (%i <= $0) { if ($istok(%badwords, $ [ $+ [ %i ] ] ,44)) { echo That word or words is already in the list | halt } | inc %i } set %badwords $replace($addtok(%badwords,$1-,32),$chr(32),$chr(44)) echo The new list is --> %badwords } alias delword { if (!$1) { echo Please specify something to be removed. | halt } if (!$istok(%badwords,$1,44)) { echo That word is not in the list. | halt } else { set %badwords $remtok(%badwords,$1,44) echo The new list is --> %badwords } } |






