unless you have groups setup in your userlist for @[IP][.. you do not need @[IP][*:text:...etc..
on *:text:!ip:#:msg $chan My ip is $ip this will msg the channel with your IP (or your bots ip...)
on *:text:!ip *:#:{ if $2 !ison $chan { msg $chan you got the nickname wrong } else { msg $chan $2 host is $address($2,2) } } this will return the host of $2..example... !ip Chris2015 that will get my hostmask and msg it to the channel
are you typing !ip on the SAME mirc that you put the script on? if so then it wont work..previously you said that you had a bot.. so put the code on your bot, not YOUr client.
Yeah, if there is a mode protecting the users IP you cant do it... I dont really see a use for this command unless your an IRCop and its in an oper channel.. or something even then *shrugs* ip addresses are quit pointless to an everyday IRC user... (we mask ours at our network.. +x on unreal.)