mIRC Home    About    Download    Register    News    Help

Print Thread
#113219 02/03/05 06:49 PM
Joined: Oct 2004
Posts: 6
N
nake Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Oct 2004
Posts: 6
I am crating an theme system and i want to know if anyone knows the code so it tells me that the person that i had a chat with that person tell me again that they have reconnected but in the query where i had ac hat with them

#113220 02/03/05 06:55 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Hi Nake,

Sorry mate I don't understand what you mean, can you be more specific?

Do you mean Notify?

/notify <Nick>

Code:
on 1:Unotify: {
  if ($query($nick)) {
    echo 7 -t $nick $nick has logged out.
  }
  else { 
    echo 7 -at $nick has logged out 
  }
}

on 1:Notify: {
  if ($query($nick)) {
    echo 7 -t $nick $nick has logged in.
  }
  else { 
    echo 7 -at $nick has logged out. 
  }
}


This echoes $nick has logged in/out in the private message. Hope this what you meant.

Last edited by SladeKraven; 02/03/05 07:11 PM.
#113221 02/03/05 07:53 PM
Joined: Jan 2005
Posts: 19
M
Pikka bird
Offline
Pikka bird
M
Joined: Jan 2005
Posts: 19
what i mena is that when i am having a query and the person quits i want it to echo to me that the person has rejoined the server smothing like this:
<test>see ya
<nake>see ya
test(at@232934-dalnet-isp .tk) has quit irc
and if the person reconnects to the server i want it to say to me
test(at@232934-dalnet-isp .tk) is back online again
This is all in the query

#113222 02/03/05 08:27 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Well you could do something like this, but other than that I have no idea how else I could do it, sorry. frown

Code:
On *:Quit: {
  if ($query($nick)) {
    notify $nick 
    echo 7 -at $nick has logged out.
  }
}

On *:Notify: {
  if ($query($nick)) {
    notify -r $nick
    echo 7 -t $nick $nick has logged in.
  }
}


Link Copied to Clipboard