mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#210474 17/03/09 07:34 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
F3 /ban -k # $* 2 no reason
im using this for ban marked nicks
i just want make it dnt ban myself anything possible confused

xyzzy #210475 17/03/09 07:42 PM
Joined: Dec 2002
Posts: 2,033
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,033

Try this

F3 tokenize 32 $remtok($1-,$me,1,32) | ban -k # $* 2 no reason

or this

F3 sline -r # $me | ban -k # $* 2 no reason

Last edited by RoCk; 17/03/09 07:53 PM.
RoCk #210476 17/03/09 08:20 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
thank you first one works well smile

xyzzy #210702 23/03/09 02:09 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
Code:
on $*:hotlink:/(@[\w-]+(\56[\w-]+)+)/:#: mode $chan $iif(*!* $+ $regml(1) isban $chan,-b,+b) *!* $+ $regml(1)

using that one to ip ban/unban
want to change it just ban as *!*@7B13940E.*
tried add this
tokenize 32 $remtok($1-,$me,1,32) | ban -k # $* 2 no reason
but didnt work

xyzzy #210707 23/03/09 05:42 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Remember to double click on a NICK in channel
Code:
on ^*:hotlink:*:#:if ($me isop $chan) return | halt
on *:hotlink:*:#: {
  mode $chan $iif($1 isban $chan,-b,+b) $address($1,3)
  if ($1 !isban $chan) { tokenize 32 $remtok($1,$me,1,32) | ban -k # $* 2 no reason }
}

Tomao #210709 23/03/09 06:03 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
sets mode: +b *!(aaa@3B7480CD.1C40876A.AD8A0A5B.IP)
something wrong ?

xyzzy #210723 24/03/09 12:11 AM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
i tried a lot and that $address($1,3) is ban like this
*!aaa@3CE01815.1C40876A.AD8A0A5B.IP
but i want it set ban as *!*@3CE01815.*
also do not want to -b if the ip already banned
-
the other problem is
f1 tokenize 32 $remtok($1-,$me,1,32) | mode # +b $gettok($address($$1,2),1,46) $+ * | kick # $* reason
using this for ban the nicks selected in nicklist but its only ban 1 nick can change it to ban all nicks selected ?

xyzzy #210727 24/03/09 01:16 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
F1 {
  var %snicks = $remtok($snick(#),$me,1,44), %a = 1, %b = $numtok(%snicks,44)
  while %a <= %b {
    var %nick = $gettok(%snicks,%a,44)
    .ban -k # $gettok($address(%nick,2),1,46) $+ * <reason>
    inc %a
  }
}


This should do what you're describing. If you find that the addresses are being too general, change the 4 for the address lookup to a 2, but I don't think you'll see much of a difference between the two.

I can't test this as the addresses on the network that I would test it on are shown to me in proper format due to the fact that I'm an IRCop.

Last edited by RusselB; 24/03/09 04:04 AM.
RusselB #210730 24/03/09 01:34 AM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
+b *!*@3CE01815.1C40876A.AD8A0A5B.*
the ban is not what i wanted i tried 2 to
need set as +b *!*@3CE01815*



xyzzy #210731 24/03/09 02:04 AM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Change to this and see what happens:
Code:
.ban -k # $left($replace(%address,%address1,*),13) <reason>

Tomao #210732 24/03/09 02:07 AM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
+b *!*@*.1C40876
this ermm and its wrong

xyzzy #210733 24/03/09 02:23 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Try my edited version. My apologies, I was looking at the wrong end of the host address in my first post.

RusselB #210734 24/03/09 02:28 AM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
this i got just tried edited one
+b *!*A0A6B.IP*@*
i give u one ip to see
@3CE01815.1C40876A.AD8A0A6B.IP
*!*@3CE01815*
mode # +b $gettok($address($$1,2),1,46) $+ *
this code get that ip right like this
sets mode: +b *!*@3CE01815*


Last edited by xyzzy; 24/03/09 02:29 AM.
xyzzy #210735 24/03/09 04:05 AM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Good one. But you should change $$1 to $snicks so it compliments Russel's code.

xyzzy #210736 24/03/09 04:05 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Let's hope that the 3rd time is the charm.

RusselB #210743 24/03/09 12:37 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
sets all bans great \:\)
*!*@2928C87F* No such nick/channel
.ban -k # $gettok($address(%nick,2),1,46) $+ * <reason>
changed to
.mode # +b $gettok($address(%nick,2),1,46) $+ * | kick # $* <reason>
its all working now thank you \:\)
-
Tomao double click is not works well i did double click the nick and it set 2 bans
sets mode: +b *!*aaa@*.1C40876A.AD8A0A6B.IP
sets mode: +b *!*@3CE01815.1C40876A.AD8A0A6B.IP
if i double click and ip in the room set it ban as sets mode: +b *!*@3CE01815*
Code:
on $^*:hotlink:/@[\w-]+(\56[\w-]+)+/:#:{
  if ($me isop $chan) return
  halt
}
on $*:hotlink:/(@[\w-]+(\56[\w-]+)+)/:#: mode $chan $iif(*!* $+ $regml(1) isban $chan,-b,+b) *!* $+ $regml(1)

this one set bans full ip on double lick ip
sets mode: +b *!*@3CE01815.1C40876A.AD8A0A6B.IP

xyzzy #210749 24/03/09 05:10 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
I think I could have overlooked the fact that that hotlink ban script should have worked if you changed the second bit to:
Code:
on $*:hotlink:/(@[\w-]+(\56[\w-]+)+)/:#:mode $chan $iif(*!* $+ $regml(1) isban $chan,-b,+b) *!* $+ $+($gettok($regml(1),1,46),*)

Tomao #210750 24/03/09 05:38 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
thanks a lot have a good day/night
-edit
just banned myself needs fix it smirk

Last edited by xyzzy; 24/03/09 06:03 PM.
xyzzy #210987 30/03/09 09:31 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
need fix it to dnt ban urself confused

xyzzy #210991 30/03/09 10:19 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
How did you ban yourself?

Page 1 of 2 1 2

Link Copied to Clipboard