Memo/NickChan Service Capturing?
#37233
19/07/03 08:37 PM
|
Joined: Jul 2003
Posts: 1
rotic
OP
Mostly harmless
|
OP
Mostly harmless
Joined: Jul 2003
Posts: 1 |
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.
|
|
|
Re: Memo/NickChan Service Capturing?
#37234
20/07/03 01:38 AM
|
Joined: May 2003
Posts: 215
lammkott
Fjord artisan
|
Fjord artisan
Joined: May 2003
Posts: 215 |
on *:NOTICE:*:*: {
if (($nick == MemoServ) || ($nick == NickServ) || ($nick == ChanServ)) {
echo -a $nick just sent you the message: $1-
}
}
- Jason
|
|
|
Re: Memo/NickChan Service Capturing?
#37235
20/07/03 02:59 AM
|
Joined: Jan 2003
Posts: 3,012
KingTomato
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
I personally would use:
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.
-KingTomato
|
|
|
Re: Memo/NickChan Service Capturing?
#37236
20/07/03 10:46 AM
|
Joined: Dec 2002
Posts: 2,985
Watchdog
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
... and anyone that has 'serv' as a suffix to their nick or anyone impersonating Services.
|
|
|
Re: Memo/NickChan Service Capturing?
#37237
20/07/03 12:05 PM
|
Joined: Mar 2003
Posts: 1,271
LocutusofBorg
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
Using *Serv isn't any more accurate than explicitly specifying the nicks. If any, it's less secure due to imposters.
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
Re: Memo/NickChan Service Capturing?
#37238
20/07/03 07:33 PM
|
Joined: Jan 2003
Posts: 3,012
KingTomato
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
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. :irc.dynamix.com 432 KingTomato TestServ :Erroneous Nickname: Forbidden nick
-KingTomato
|
|
|
Re: Memo/NickChan Service Capturing?
#37239
21/07/03 03:55 AM
|
Joined: Dec 2002
Posts: 2,985
Watchdog
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
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.
|
|
|
Re: Memo/NickChan Service Capturing?
#37240
21/07/03 08:48 AM
|
Joined: Dec 2002
Posts: 54
laz
Babel fish
|
Babel fish
Joined: Dec 2002
Posts: 54 |
Arn't most network services something like: ChanServ@Services.ircnetwork.netIf so, you could look for Services* in the host mask.
|
|
|
Re: Memo/NickChan Service Capturing?
#37241
21/07/03 08:57 AM
|
Joined: Dec 2002
Posts: 2,985
Watchdog
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
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.
|
|
|
Re: Memo/NickChan Service Capturing?
#37242
21/07/03 11:44 AM
|
Joined: May 2003
Posts: 215
lammkott
Fjord artisan
|
Fjord artisan
Joined: May 2003
Posts: 215 |
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.
- Jason
|
|
|
Re: Memo/NickChan Service Capturing?
#37243
21/07/03 09:54 PM
|
Joined: Jan 2003
Posts: 3,012
KingTomato
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
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.
-KingTomato
|
|
|
Re: Memo/NickChan Service Capturing?
#37244
22/07/03 11:34 AM
|
Joined: Dec 2002
Posts: 1,321
Hammer
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,321 |
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.
DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
|
|
|
|
|