mIRC Home    About    Download    Register    News    Help

Topic Options
#73176 - 29/02/04 05:00 PM on 1:OPEN:=: {
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
I have been asking this befor.. but didnt get any good answer on it, so here we go again. If i open a DCC chat with somone, then i can echo that users nick by $nick.. but how can i do a check that if $nick == $true command .. and with $true i mean if i have a chat open with that nick, then i want to trigger a command, i couldent find anything about this in the help file.. and not on this forum.. "i never know what nick the $nick would be".. any suggestions?
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#73177 - 29/02/04 06:50 PM Re: on 1:OPEN:=: {
tye Offline
Pikka bird

Registered: 22/12/02
Posts: 16
Loc: Ontario, Canada
Use $chat to check if you have a DCC chat open with somebody. Example:
Code:
if ($chat(Tye)) { echo -a I have a DCC Chat window with Tye } 


_________________________
Tye on Undernet and DALnet

Top
#73178 - 29/02/04 06:55 PM Re: on 1:OPEN:=: {
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
if ($chat( $+ $nick $+ ) != $null) { Echo -a You have a chat open with $nick $+ . }

dont work.. cos you get that chat window you just opened as if you allready had a chat open with that nick smirk
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#73179 - 29/02/04 07:34 PM Re: on 1:OPEN:=: {
Adrenalin Offline
Fjord artisan

Registered: 18/04/03
Posts: 414
Loc: Moldova

Code:
on 1:OPEN:=:{ 
  if ($NickChats($nick) >= 2) echo You already have a chat window with $nick !
}

Alias NickChats {
  var %total = $chat(0)
  var %c = 0
  while (%total) {
    if ($1 == $chat(%total)) inc %c
    dec %total
  }
  return %c
}
_________________________
mIRC Chm Help 6.16.0.3 Full Anchored!

Top
#73180 - 29/02/04 08:44 PM Re: on 1:OPEN:=: {
Online Offline
Hoopy frood

Registered: 09/12/02
Posts: 1922

Top
#73181 - 01/03/04 12:41 PM Re: on 1:OPEN:=: {
Adrenalin Offline
Fjord artisan

Registered: 18/04/03
Posts: 414
Loc: Moldova
My alias do same think $window(=$nick,0).. So use $window(=$nick,0)
_________________________
mIRC Chm Help 6.16.0.3 Full Anchored!

Top