|
Joined: Nov 2006
Posts: 143
Vogon poet
|
OP
Vogon poet
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
|
|
|
|
Joined: Dec 2002
Posts: 2,033
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Nov 2006
Posts: 143
Vogon poet
|
OP
Vogon poet
Joined: Nov 2006
Posts: 143 |
thank you first one works well
|
|
|
|
Joined: Nov 2006
Posts: 143
Vogon poet
|
OP
Vogon poet
Joined: Nov 2006
Posts: 143 |
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
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,129 |
Remember to double click on a NICK in channel 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 }
}
|
|
|
|
Joined: Nov 2006
Posts: 143
Vogon poet
|
OP
Vogon poet
Joined: Nov 2006
Posts: 143 |
sets mode: +b *!(aaa@3B7480CD.1C40876A.AD8A0A5B.IP) something wrong ?
|
|
|
|
Joined: Nov 2006
Posts: 143
Vogon poet
|
OP
Vogon poet
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 ?
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
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.
|
|
|
|
Joined: Nov 2006
Posts: 143
Vogon poet
|
OP
Vogon poet
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*
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,129 |
Change to this and see what happens: .ban -k # $left($replace(%address,%address1,*),13) <reason>
|
|
|
|
Joined: Nov 2006
Posts: 143
Vogon poet
|
OP
Vogon poet
Joined: Nov 2006
Posts: 143 |
+b *!*@*.1C40876 this ermm and its wrong
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Nov 2006
Posts: 143
Vogon poet
|
OP
Vogon poet
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.
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,129 |
Good one. But you should change $$1 to $snicks so it compliments Russel's code.
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
Let's hope that the 3rd time is the charm.
|
|
|
|
Joined: Nov 2006
Posts: 143
Vogon poet
|
OP
Vogon poet
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* 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
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
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: on $*:hotlink:/(@[\w-]+(\56[\w-]+)+)/:#:mode $chan $iif(*!* $+ $regml(1) isban $chan,-b,+b) *!* $+ $+($gettok($regml(1),1,46),*)
|
|
|
|
Joined: Nov 2006
Posts: 143
Vogon poet
|
OP
Vogon poet
Joined: Nov 2006
Posts: 143 |
thanks a lot have a good day/night -edit just banned myself needs fix it
Last edited by xyzzy; 24/03/09 06:03 PM.
|
|
|
|
Joined: Nov 2006
Posts: 143
Vogon poet
|
OP
Vogon poet
Joined: Nov 2006
Posts: 143 |
need fix it to dnt ban urself
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,129 |
How did you ban yourself?
|
|
|
|
|