|
Joined: Jul 2003
Posts: 1
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.
|
|
|
|
Joined: May 2003
Posts: 215
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
|
|
|
|
Joined: Jan 2003
Posts: 3,012
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
|
|
|
|
Joined: Dec 2002
Posts: 2,985
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.
|
|
|
|
Joined: Mar 2003
Posts: 1,271
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
|
|
|
|
Joined: Jan 2003
Posts: 3,012
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
|
|
|
|
Joined: Dec 2002
Posts: 2,985
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.
|
|
|
|
Joined: Dec 2002
Posts: 54
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.
|
|
|
|
Joined: Dec 2002
Posts: 2,985
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.
|
|
|
|
Joined: May 2003
Posts: 215
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
|
|
|
|
Joined: Jan 2003
Posts: 3,012
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
|
|
|
|
Joined: Dec 2002
Posts: 1,321
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
|
|
|
|
|