mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2015
Posts: 19
O
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!

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
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

Joined: Apr 2015
Posts: 19
O
Pikka bird
OP Offline
Pikka bird
O
Joined: Apr 2015
Posts: 19
ty maroon!
very helpfull!


Link Copied to Clipboard