mIRC Home    About    Download    Register    News    Help

Print Thread
#98497 24/09/04 05:14 AM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
I want to make my own seenserv , but unfortunately ... i don't know any command that trigers when a user joins the network ... can somebody help me out with any suggestion how can i make it smile
10x to all


HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg
#98498 24/09/04 05:44 AM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
You're referring to a seen script that monitors the comings and goings of users on your network? If you're an IRC operator, and the IRCd has such a feature, there is usually a usermode that you can enable so that the server sends you information on connections and disconnections, this can be a starting point for your script. This information is usually sent in the form of a server notice, so you can intercept the replies using an snotice event (look at /help on snotice). If you're not an operator or your IRCd doesn't have such a feature then you will have to resort to using a join event and a quit event to keep track of people coming and going like most if not all other seen scripts

#98499 24/09/04 05:45 AM
Joined: Sep 2004
Posts: 237
Fjord artisan
Offline
Fjord artisan
Joined: Sep 2004
Posts: 237
You mean an !seen <user> service for the channels youre in?

#98500 24/09/04 05:58 AM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
no , not !seen just for a channel ... for all the network ...
and Yeah .. if i were IRC oper it would be easy but ... smile


HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg
#98501 24/09/04 06:10 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
You could do it if you don't mind making another command to watch the user first:

Code:
on *:text:!watch &amp;:#:{ .notify $2 seensys }
on *:text:!seen &amp;:#:{ notice $nick $hget(seen,$2) }
on *:notify:{ 
  if ($notify($nick).note == seensys) { hadd -m seen $nick last seen connecting to $iif($network,$v1,$server) at $time(HH:nn) }
}
on *:unotify:{ 
  if ($notify($nick).note == seensys) { hadd -m seen $nick last seen disconnecting from $iif($network,$v1,$server) at $time(HH:nn) }
}


!watch <nick>

Then: !seen <nick>

The above is just an example, you'll probably have to change it to make it compatible with your seen system.


New username: hixxy
#98502 24/09/04 06:22 AM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
tidy trax
10x for the script ... but adding first nick to monitor is not the idea i had ... although if seening by the way i think can't be realised ... this is a good idea too ...


HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg
#98503 24/09/04 06:39 AM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
tidy_trax; That script will fail when the maximum WATCH limit is reached, by default (on bahamut), that is 128.

SteeleR; if you are not an IRC operator, then you cannot do anything to monitor incoming traffic such as users joining the network, except notify which as above, will limit you to a max of 128 users and only those which you specify.

Eamonn.

#98504 24/09/04 06:48 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
I'm aware of that, it will also probably flood you off the server if WATCH isn't supported (considering you will have to send lots of ISON's), but it's the only way that you can see if users are connecting without being an ircop.


New username: hixxy
#98505 24/09/04 06:52 AM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
ok ... 10x for the help ..
i'll record only users in bot's channel
cya


HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg

Link Copied to Clipboard