mIRC Home    About    Download    Register    News    Help

Print Thread
#67970 15/01/04 06:40 PM
Joined: Oct 2003
Posts: 64
E
Exlax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Oct 2003
Posts: 64
What is the identifier to get an address for any nick, not just the ones in the IAL?

#67971 15/01/04 06:41 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
A user must be present in your ial to get their address, so your question really isn't possible.

#67972 15/01/04 06:55 PM
Joined: Oct 2003
Posts: 64
E
Exlax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Oct 2003
Posts: 64
Ah boo. Ok. Can someone give me some code that when someone with access 20 says .ban (nick OR address), it bans them..if it is a nick, it will first check in ial for the adress, and if it finds it, it will ban $address($2,2) and if it doesnt find it...it will ban $2...and if the 2nd parameter is an address...then it will just ban that addy

#67973 15/01/04 11:07 PM
Joined: Jan 2003
Posts: 1,057
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,057
use /userhost to return someones host which will be added to the ial, set a variable to make the event triggerd by the return value of /userhost know how and where to ban who

#67974 15/01/04 11:39 PM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
No need for that; mIRC's /ban automatically retrieves the nick's address when you specify a ban type (e.g 2).

#67975 16/01/04 12:23 AM
Joined: Oct 2003
Posts: 64
E
Exlax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Oct 2003
Posts: 64
Ok, I like your idea, and it seems like you are on the right track. I dont know what you meant by the variable part...but I did /userhost $2 and $address($2,2) still came out to $null

#67976 16/01/04 01:37 AM
Joined: Jan 2003
Posts: 1,057
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,057
if you don't want to use the /ban which indeed does loopup the host first (I usually use /mode rather then /ban)
you need to use /userhost $2 from the event which would trigger the ban. also set %somevar to $2 and %someothervar to the channel name
then, on reply of the /userhost (some raw, can't remember the numeric and mIRC is off atm ;-]) just if (%somevar) && (%someothervar) { mode %someothervar +b $address(%somevar,2) | unset %somevar , %someothervar }

get it?

but like Online says... /ban already does this for you

#67977 16/01/04 03:47 AM
Joined: Oct 2003
Posts: 64
E
Exlax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Oct 2003
Posts: 64
Here is what I want
*!*@site
/ban does
nick!user@site
/mode chan +b does
nick!*@*

You were right how /ban will get the address of people even not in ial (and thats exactly what i want), but i only want it to ban by the site, not with the nickname and the username.

#67978 16/01/04 03:54 AM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
It says how to do this in the helpfile.

/ban nickname 2

#67979 16/01/04 05:10 AM
Joined: Oct 2003
Posts: 64
E
Exlax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Oct 2003
Posts: 64
TY...The answer to that question!!!


Link Copied to Clipboard