mIRC Homepage
Posted By: ovelayer if dcc chat is allready open - 20/10/18 03:56 PM
need a way to check when wanting to initiate a dcc chat
it will check to see if a dcc chat is allready open and connected from that nick. if one is allready open and connnected it will echo/msg something like chat allready active. if not it will initiate the chat.

=D thanks for any help!
Posted By: maroon Re: if dcc chat is allready open - 21/10/18 05:34 AM
If you put this in the Alt+D aliases window instead of Alt+R remotes, you don't need the 'alias' keyword.

Code:
alias chatter {
  if (!$0) { echo -a syntax: /chatter NICK | return }
  if ($chat($1)) { window -a = $+ $1 | echo -ag chat window already open to $1 | return }
  dcc chat $1
}


https://en.wikichip.org/wiki/mirc/identifiers/$chat
Posted By: ovelayer Re: if dcc chat is allready open - 21/10/18 10:39 PM
ty maroon!
very helpfull!
© mIRC Discussion Forums