mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Tomao #210992 30/03/09 10:21 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
whois myself in the room then click the ip lol

xyzzy #210994 30/03/09 11:04 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Change this bit to this:
Quote:
on $*:hotlink:/(@[\w-]+(\56[\w-]+)+)/:#: {
if (*Your IP Address Here* !iswm $regml(1)) {
mode $chan $iif(*!* $+ $regml(1) isban $chan,-b,+b) *!* $+ $+($gettok($regml(1),1,46),*)
}
}

Replace 'Your IP Address Here' with your real IP
You can use set it as *68.33.18* ,or shorter in one digit, for example as a wildcard. Once set, you won't be able to ban yourself. The shorter it gets, people's IP starting with 68 will not be banned.

Tomao #210995 30/03/09 11:10 PM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
... or you simply check it against $ip (...depends on the lookup acc. to settings at "local info") smile

Horstl #211000 31/03/09 12:21 AM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
well ip's are masked and my ip chaning so need smthng like this one
F3 tokenize 32 $remtok($1-,$me,1,32) | ban -k # $* 2 no reason
i tried it didnt work

xyzzy #211001 31/03/09 12:48 AM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Ah I see... Try:
Code:
on $*:hotlink:/(@[\w-]+(\56[\w-]+)+)/:#: {
  if (*!* $+ $regml(1) isban $chan) { mode $v2 -b $v1 }
  elseif ($+(*!*,$gettok($regml(1),1,46),*) !iswm $address($me,2)) { mode $chan +b $v1 }
}
This should allow you to unban yourself, but not to ban yourself - regarding hostmasks/cloaked hosts. Note that if you click on a @<your IP address> it will ban @<first octet of your IP address>* regardless. Hope that is no problem (?)

Last edited by Horstl; 31/03/09 01:01 AM.
Horstl #211002 31/03/09 01:17 AM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
i tried it and didnt ban myself and changed it to this
Code:
on $*:hotlink:/(@[\w-]+(\56[\w-]+)+)/:#: {
if ($+(*!*,$gettok($regml(1),1,46),*) !iswm $address($me,2)) { mode $chan +b $v1 }
}

work well now ty smile

Page 2 of 2 1 2

Link Copied to Clipboard