mIRC Home    About    Download    Register    News    Help

Print Thread
if dcc chat is allready open #264021 20/10/18 03:56 PM
Joined: Apr 2015
Posts: 19
O
ovelayer Offline OP
Pikka bird
OP Offline
Pikka bird
O
Joined: Apr 2015
Posts: 19
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!

Re: if dcc chat is allready open [Re: ovelayer] #264029 21/10/18 05:34 AM
Joined: Jan 2004
Posts: 1,407
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,407
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

Re: if dcc chat is allready open [Re: ovelayer] #264037 21/10/18 10:39 PM
Joined: Apr 2015
Posts: 19
O
ovelayer Offline OP
Pikka bird
OP Offline
Pikka bird
O
Joined: Apr 2015
Posts: 19
ty maroon!
very helpfull!