BNC Disconnect

By TMFKSOFT on Dec 23, 2010

This is nothing special, Its purpose is to ame all channels with your quit message then add an away message then disconnect.

Make sure the channels your in will allow amsgs/ames!

08:05 * &IlkoTech[Away] (~thomas@tmfksoft.bnc.geekshed.net) Quit: (Quit: night)

If anything people wont notice :P

alias disconnect {
  ame (~ $+ $remove($left($emailaddr,$pos($emailaddr,@,1)),@) $+ @ $+ $host $+ ) Quit: ( $+ $iif($1!="",Quit: $1-,Client exited) $+ )
  away Auto away $asctime(hh:nn:ss)
  quit
}
Sign in to comment.
_Teen_   -  Dec 24, 2010

[quote] then $host will reveal your real host (and, consequentially, your IP) whereas $ial($me).addr and $ial($me).host would not. [/quote]

yes, as i said, i dont know why he wants to use $host to send his real local host on server, cause the $ial($me).host will only show the mask that server gave to u. instead of your real ip. by the way, if u use $host in a bnc, it will return ur host, and not the BNC host

 Respond  
jaytea   -  Dec 24, 2010

will only send the address, not the entire host, by the way, its not safe send the host, with the ip

i'm not sure what you're trying to say here. $ial($me).addr returns the ident@host that the server sends you and everyone else that ever receives server messages concerning your client. it is the very same ident@host that users will see when you later /quit. the fact that he adds ~ to the ident leads me to believe that what he is aiming to get is precisely this information.

$host, on the other hand, does not necessarily return information that is available to other clients. if the network has host hashing and mIRC uses a server lookup method to resolve a named host from your IP, then $host will reveal your real host (and, consequentially, your IP) whereas $ial($me).addr and $ial($me).host would not.

ultimately, the OP would need to clarify what information it is he's trying to display - chances are that it is simply $ial($me).addr.

 Respond  
_Teen_   -  Dec 24, 2010

not in this case Jethro_, the

$ial($me).host

will return the ip mask, of the ial list, and not the local host by the identifier $host, which will return

ip.ISP

the ial will just return the ip on ial list

 Respond  
Jethro   -  Dec 24, 2010

If you want to get the host, use the .host property.

$ial($me).host
 Respond  
_Teen_   -  Dec 23, 2010

yes, but in this case, i dont know why he wants to send his host to channel, the

( $+ $ial($me).addr $+ )

will only send the address, not the entire host, by the way, its not safe send the host, with the ip

 Respond  
jaytea   -  Dec 23, 2010

if we're using /ame and the IAL is enabled (as it is by default) then it's safe to assume we're in at least 1 channel and we can therefore use $ial() to grab parts of our own address:

( $+ $ial($me).addr $+ )
 Respond  
_Teen_   -  Dec 23, 2010

look dude, u can use gettok, to not use $emailaddr too many times this line

(~ $+ $remove($left($emailaddr,$pos($emailaddr,@,1)),@) $+ @ $+ $host $+ )

just shortened to this

$+($chr(40),~,$gettok($emailaddr,1,64),@,$host,$chr(41))

here, gettok get the first part of email, and dont need to remove, all the other part

 Respond  
macs-rock   -  Dec 23, 2010

oh lol so thats what you used to nearly get killed with /kill TMFKSOFT XDD its a cool script though :)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.