mIRC Homepage
Posted By: ORSO A small help!! - 23/05/03 02:09 AM
Hi all.
I have a problem,there is one person that flood my channel and he has i dinamic ip exact AOL.The problem is that when he come in chan to flood he did not change his "ircname".
Can someone help me,with an addon that when see his ircname kickban him and change the channel in +m.

Hope that someone can help me.
PnL ppl
Posted By: codemastr Re: A small help!! - 23/05/03 02:41 AM
what is an ircname? his nickname?
If so:
Code:
ON @*:JOIN:#the_channel:{
   if ($nick == the_nick) {
      .mode $chan +m
      .ban $nick 3
      .kick $chan $nick Flooding
   }
}

Something like that should do what you asked.
Posted By: Collective Re: A small help!! - 23/05/03 02:51 AM
Couldn't he just do +b the_nick!*@*?
Posted By: codemastr Re: A small help!! - 23/05/03 02:58 AM
yea of course, and also the +m is redundant (on most networks +b prevents you from talking), I was simply doing what he asked. If it were me personally, and someone always used the same nick, I'd just +b the nick, or actually since as he mentioned it is AOL, I'd probably just +b *@*.aol.com smile
Posted By: ORSO Re: A small help!! - 26/05/03 09:58 AM
Hi all
First Thanks for replying.Cos his nick change i want to when join with the name WAR,because he change his nick,his ident,but dont change his name.Do u understant??Sorry for my poor English.
An example
::Whois::
-Nick: Drita
·Name: WAR
·IdentD: psycho
·Host: 22cbf9e3.2803ef39.bitchx.biz
·Server: iRc.Unitedchat.Net
·Description: Albanian IRC Network
·Idle: 2days 19hrs 4mins 53secs
::End of Whois::

Name = WAR
Posted By: KingTomato Re: A small help!! - 27/05/03 06:06 PM
If you want an all around protection, try this:

#floodprotect on

on @1:TEXT:*:#: {
; ----------------------------------- Flood (Repeated Messages)
; This is a simple protection that looks for a user repeating the
; same message, and if it finds that person, first will warn, then
; will set a mute ban, next kick, then ban
; ----------------------------------- Flood (Repeated Messages)
if (%text. [ $+ [ $nick ] ] != $1-) /set -u300 %text. [ $+ [ $nick ] ] $1-
else {
; Increase number of duplicate messages
/inc -u5 %flood. [ $+ [ $nick ] ]
;check how many times we've had to see that message
if (%flood. [ %+ [ %nick ] ] == 3) {
/unset %flood. [ $+ [ $nick ] ]
; increase number of times we've had to deal with this person
/inc -u1800 %warn. [ $+ [ $nick ] ]
; take action
/takeaction $chan $nick Flood Flooding (5 lines, 3 seconds)
}
}
}

#floodprotect end

#spamprotect on

on @1:TEXT:*:#: {
; ----------------------------------- Spam (Repeated Gibberish)
; This is also a simple protection, as it will find a person typing
; several lines, but with any line of text. This has the same actions
; as the flood protection, but is 7 lines in 5 seconds.
; ----------------------------------- Spam (Repeated Gibberish)
/inc -u5 %spam. [ $+ [ $nick ] ]
; they passed limit
if (%spam. [ $+ [ $nick ] ] == 7) {
/unset %spam. [ $+ [ $nick ] ]
; increase times dealt with
/inc -u1800 %warn. [ $+ [ $nick ] ]
; take action
/takeaction $chan $nick Spam Spamming (7 lines, 5 seconds)
}
}

#spamprotect end

; take action - use when %warn.(name) has been declaired
; syntax: /takeaction <channel> <nickname> <action> <reason(if kicked)>
; Example: /takeaction #king-tomato ChanSys Flood Flooding (7 lines, 5 seconds)
alias -l takeaction {
; set some easy-to-use variables
/set -u0 %chan $1
/set -u0 %nick $2
/set -u0 %word $3
/set -u0 %reason $4-

; Now, to take action
if (%warn. [ $+ [ %nick ] ] == 1) {
; warning
/msg %chan Please do not %word the channel $nick $+ . Further to do so will result in kicks and/or bans.
}
else if (%warn. [ $+ [ %nick ] ] <= 3) {
; mute ban
/mode %chan -ov+b %nick %nick $address(%nick, 1)
}
else if (%warn. [ $+ [ %nick ] ] <= 6) {
; kick
/mode $chan -ov $nick $nick
/kick $chan %nick %reason
}
else if (%warn. [ $+ [ %nick ] ] != $null) {
/mode %chan -ov+b %nick %nick $address(%nick, 11)
/kick %chan %nick Banned! %reason
}
}
© mIRC Discussion Forums