Can someone make me a mirc code
Moderator: Supporters
Can someone make me a mirc code
Hi can someone please make me a mirc code so when a user joins a channel the user with the code checks if ithe users vhost is host and +o it?
Code: Select all
on *:join:#:{ /whois $nick
if ( %host == insert.which.host.you.wanna.check ) { //mode $chan +o $nick
}
}
raw 311:*:{
haltdef
set %host $4
}
- §
Code: Select all
on *:join:#:{ /whois $nick
if ( Ninechat_Host isin %host ) { //mode $chan +o $nick
}
}
raw 311:*:{
haltdef
set %host $4
}
- §
-
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
sCutt, you're code is over-complicated.
Or, the way he wants it:
Code: Select all
on *:JOIN:#:{ if ($address($nick,2) == *!*@host.to.be.opped) { mode # +o $nick } }
Code: Select all
on *:JOIN:#:{ if (ninechat_Host isin $address($nick,2)) { mode # +o $nick } }
This isn't really a mIRC help forum, but since I'm feeling nice.
I must point out that some remnant of the real host should remain because when you use a system like that, you remove the usefulness of hostname banning and replace it with the insecurity of nick-based banning (because when you mode +b a user he could simply reconnect with a new nick).
Code: Select all
on *:SNOTICE:*Client connecting*:{
if ($6-7 == on port || ($6 == at && . isin $7)) {
;Normal connect snotice. Nick is $8
chghost $8 host. $+ $8
}
else if ($5 == Connecting:) {
;HCN - nick is $6
chghost $6 host. $+ $6
}
}
Oh and Stealth: YOUR code is over complicated!
Code: Select all
/aop on
/aop [email protected] #channel nameofyournetworkhere
I can appreciate doing it through a bot but if the bot drops then bang goes your protection . Services is a much better solution imo . Why go to the effort of coding something that already exists ? . Failing that check out some of the numerous chan bots already written you may be able to snip the code out you need .
Yawn. So there's yet another "if the user clicks the button, they're infected" exploit. Why is this news? We already know users are idiots.