mIRC Home    About    Download    Register    News    Help

Print Thread
Join Notify #211284 11/04/09 12:35 AM
Joined: Mar 2009
Posts: 28
J
Joshy Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Mar 2009
Posts: 28
Hi. I've been looking for a code so that everytime the user Tom joins a room that im in, it will somehow notify me.. please help..

__________________________________________
@tom has just joined #example_room
______________________________
As sooon as tom joins a get a little message box, or maybe a beep. please help

Re: Join Notify [Re: Joshy] #211285 11/04/09 12:53 AM
Joined: Dec 2002
Posts: 2,013
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,013

Code:

on !*:JOIN:#: {
  if (($nick != Tom) || (# $network == $active $network)) return
  echo -aect info * $nick has joined # on $network
}



Re: Join Notify [Re: Joshy] #211286 11/04/09 12:54 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
on !*:join:#:{
  if $nick == Tom {
    echo -a $nick just joined $chan on $network
  }
}


Re: Join Notify [Re: Joshy] #211290 11/04/09 07:46 AM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
...and this version will create a little tooltip "popup" window to notify you, and beep 3 times. If you double-click the popup, the respective channel will become the active window.
Code:
on !*:join:#:{
  if ($nick == Tom) {
    noop $tip(jnotify, Join Notify:, $nick just joined $chan, 20, $mircexe, 22, window -ra $safe2($chan))
    beep 3 300
  }
}
alias -l safe2 { bset -t &a 1 $1 | return $!regsubex(safe, $bvar(&a,1-) ,/(\d+)(?: |$)/g,$chr(\1)) }

(untested)

Re: Join Notify [Re: Horstl] #211296 11/04/09 01:53 PM
Joined: Mar 2009
Posts: 28
J
Joshy Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Mar 2009
Posts: 28
thanks it works great, and how could i add more nick names without having to have two of the scripts.?

Re: Join Notify [Re: Joshy] #211300 11/04/09 03:06 PM
Joined: Dec 2002
Posts: 2,013
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,013

Using his script you could do this...
Code:

on !*:JOIN:#:{
  ; Add nicks to the next line.
  var %nicks = Tom RusselB Horstl RoCk
  if ($istok(%nicks,$nick,32)) {
    noop $tip(jnotify, Join Notify:, $nick just joined $chan, 20, $mircexe, 22, window -ra $safe2($chan))
    beep 3 300
  }
}
alias -l safe2 { bset -t &a 1 $1 | return $!regsubex(safe, $bvar(&a,1-) ,/(\d+)(?: |$)/g,$chr(\1)) }



Just add each nick to the end of the string separated by spaces.

~ Edit ~
Remove our nicks of course. smile

Re: Join Notify [Re: RoCk] #211302 11/04/09 04:17 PM
Joined: Mar 2009
Posts: 28
J
Joshy Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Mar 2009
Posts: 28
doesn't seem to work...... and yes, i did remove ur names..

Re: Join Notify [Re: Joshy] #211303 11/04/09 04:27 PM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
It does work. Make sure you have added every nickname correctly letter by letter with a space between them.