mIRC Homepage

Memo/NickChan Service Capturing?

Posted By: rotic

Memo/NickChan Service Capturing? - 19/07/03 08:37 PM

Hello,

I'm trying to capture all chanserv/nickserv/memoserv messages, format the text they send me, and display it the way I want to.

I've used raw 311 - 319 to capture some things regarding whois information returned. But no matter what ive tried so far (on TEXT, on NOTICE, etc..) I can not get text like
MemoServ's List of messages (if any)

Is there an easy way that I am overlooking ?

thanks.

Posted By: lammkott

Re: Memo/NickChan Service Capturing? - 20/07/03 01:38 AM

Code:
on *:NOTICE:*:*: {
  if (($nick == MemoServ) || ($nick == NickServ) || ($nick == ChanServ)) {
    echo -a $nick just sent you the message: $1-
  }
}
Posted By: KingTomato

Re: Memo/NickChan Service Capturing? - 20/07/03 02:59 AM

I personally would use:

Code:
on *:NOTICE:*:*: {
  if ((*Serv iswm $nick) || (*.*.* iswm $nick)) {
    /echo -s $+(-,$nick,-) $1-
  }
}


Just using *serv is accurate becauser it covers all services, most servers also restrick nicknames ending in serv so its almost fool proof. Also some networks use domain names for the service, such as:

-services.mynetwork.com- Password accepted, you are now identified.
Posted By: Watchdog

Re: Memo/NickChan Service Capturing? - 20/07/03 10:46 AM

... and anyone that has 'serv' as a suffix to their nick or anyone impersonating Services.
Posted By: LocutusofBorg

Re: Memo/NickChan Service Capturing? - 20/07/03 12:05 PM

Using *Serv isn't any more accurate than explicitly specifying the nicks. If any, it's less secure due to imposters.
Posted By: KingTomato

Re: Memo/NickChan Service Capturing? - 20/07/03 07:33 PM

Well, i know for sure my network restricks names ending inserv, so i find it accurate. On your own network, try /Nick SomeServ and see if it works.

Quote:

:irc.dynamix.com 432 KingTomato TestServ :Erroneous Nickname: Forbidden nick
Posted By: Watchdog

Re: Memo/NickChan Service Capturing? - 21/07/03 03:55 AM

It does on mine too but that's not the point because most don't. My network also blocks K9, X, W, Z, ChanOP, NickOP, etc as even though they are not officially services on this particular network it would once again provide confucsion to users that roam across networks, Publicly released scripts need to take this into account.
Posted By: laz

Re: Memo/NickChan Service Capturing? - 21/07/03 08:48 AM

Arn't most network services something like:

ChanServ@Services.ircnetwork.net

If so, you could look for Services* in the host mask.
Posted By: Watchdog

Re: Memo/NickChan Service Capturing? - 21/07/03 08:57 AM

Not every network has *services* in the host. In any case I could just set up a proxy with 'services' in the hostname or have 'services' as my user ID and KingTomato's script (if modified to what you suggest) would be fooled into believing that I am NickServ.
Posted By: lammkott

Re: Memo/NickChan Service Capturing? - 21/07/03 11:44 AM

Both of the servers I'm on do not restrict nicknames in that way. Which is why I've always specified the nickname. Otherwise I would use your way to save me typing multiple if statements.
Posted By: KingTomato

Re: Memo/NickChan Service Capturing? - 21/07/03 09:54 PM

as for the ChanServ@services.network.net, thats why i also use *.*.* as you cannot have a period in your nickname, again on my netowrk. Though watch will prove me wrong again--almost undoubtidly.
Posted By: Hammer

Re: Memo/NickChan Service Capturing? - 22/07/03 11:34 AM

There is NO, repeat NO, 100% secure way of ensuring that what you are seeing is really ChanServ, et al. If I write a fake mIRCd that spits out the exact numerics in the exact order and timing that a DALnet server does (you can even build in variable lag), and then I have you /server to my IP (or a resolved irc.something.net), I can just as easily fake ANY services reply to fool your script.

With that in mind, any script that auto-responds is quite literally intentionally stupid. But if you don't mind, I certainly don't.

As for scripts that simply reformat the display, no such security is required. All you need to do is check whatever format services on the networks you frequent the most uses and go with that.
© 2021 mIRC Discussion Forums