mIRC Home    About    Download    Register    News    Help

Topic Options
#264021 - 20/10/18 04:56 PM if dcc chat is allready open
ovelayer Offline
Nutrimatic drinks dispenser

Registered: 06/04/15
Posts: 9
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!

Top
#264029 - 21/10/18 06:34 AM Re: if dcc chat is allready open [Re: ovelayer]
maroon Offline
Hoopy frood

Registered: 12/01/04
Posts: 970
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

Top
#264037 - 21/10/18 11:39 PM Re: if dcc chat is allready open [Re: ovelayer]
ovelayer Offline
Nutrimatic drinks dispenser

Registered: 06/04/15
Posts: 9
ty maroon!
very helpfull!

Top