mIRC Home    About    Download    Register    News    Help

Print Thread
need script for repeating in channel. #121069 23/05/05 05:13 PM
Joined: May 2005
Posts: 54
M
Mlupu Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 54
Whem someone repeat in channel, i want to put in remote codes who can help me when i'm channel operator.
I want to punish it with kick/bans. Can somebody help me ? Thanks!

Re: need script for repeating in channel. #121070 23/05/05 05:31 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
put in popups for nicklist

Flood kick:ban -ku900 # $$1 3

Re: need script for repeating in channel. #121071 24/05/05 05:11 PM
Joined: May 2005
Posts: 54
M
Mlupu Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 54
Is not working.. i do no why..


/server IRC.RomaniaIRC.ORG
Re: need script for repeating in channel. #121072 24/05/05 09:45 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
is not automatic, you must click on name, then right click and select the flood kick

I know someone in Siberia maybe he can help you.

Re: need script for repeating in channel. #121073 25/05/05 02:42 PM
Joined: May 2005
Posts: 54
M
Mlupu Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 54
Look what code I have in remote, but i think is not completed. This code punish people who do nothing bad in channel.

Code:
on *:text:*:#: {
if ($nick !isop $chan) && ($nick !isvoice #) {
if (%r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] == $null) {
set -u30 %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] 1
set -u30 %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ] $1-
}
%rps = %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
%rpt = %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
if (%rpt == $1-) {
inc %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
if (%rps >= 2) {
kick # $nick REASON

if (%rps >= 3) {
ban # $address($nick,2) | kick # $nick REASON }
}
}
}
}


/server IRC.RomaniaIRC.ORG
Re: need script for repeating in channel. #121074 25/05/05 06:06 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Code:
on *:text:*:#: {
  if ($nick isop $chan) || ($nick isvoice $chan) { halt }
  if (LOL iswm $1-) {
    if (%r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] == $null) {
      set -u30 %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] 1
      set -u30 %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ] $1-
    }
    %rps = %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
    %rpt = %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
    if (%rpt == $1-) {
      inc %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
      if (%rps >= 2) { kick # $nick REASON: You said a bad word! }
      if (%rps >= 3) {
      ban -u15 # $address($nick,2) | kick # $nick REASON: you said a bad word again! }
    }
  }
}


you had:
on *:text:*:#: { which has the script react to all channels you are in, for ANY text (the * is a wildcard that matches anything)

then you have:
if ($nick !isop $chan) && ($nick !isvoice #) {
the # should have been $chan. Also I changed it to be if they are op OR voice the script stops, if they are not op or voice it then checks for the word "LOL" I used this as I do not know what words you want to restrict.
you can add more words like this:
if (LOL iswm $1-) || (foobar iswm $1-) {
-
I have not tested this but I believe it should work.