"Mis"-Identify blocks
Posted: Tue Aug 17, 2004 12:11 am
I don't know how often you've seen this, but once in a while you come across the user typing in the nice little /msg NickServ/ChanServ IDENTIFY inside a channel/query window (ok, that's a stupid idea from the start: for example, when enabled mIRC will log just about everything echoed to a channel/query window, including the -> *NickServ* IDENTIFY blablabla), or /nickserv|/chanserv IDENTIFY if that be the case. But sometimes you just daze out and forget the / and now your IDENTIFY password was messaged to forty-odd persons in the same channel.
I agree (and even tell people ) that you should always type nickserv/chanserv passwords in a non-targetted window (like Status/Server windows) but some clients don't have this choice, or some people just forget, so I thought it might be nice to utilize spamfilter to help remind these people and protect them from accidentally exposing their password.
Naturally not required on serviceless nets and you may have to change the targets/alias names to suit (for example, you might have Q and X instead of NickServ and ChanServ ).
*edit* on the same token we could use this for accidental "mis"-/oper as well (I saw this once!)... this should work:
*/edit*
I agree (and even tell people ) that you should always type nickserv/chanserv passwords in a non-targetted window (like Status/Server windows) but some clients don't have this choice, or some people just forget, so I thought it might be nice to utilize spamfilter to help remind these people and protect them from accidentally exposing their password.
Code: Select all
// This will block accidental omission of /, or accidental use of CTRL+ENTER (in mIRC, this makes the text send as normal text - ie don't execute / commands), for the /nickserv, /chanserv, and /identify aliases.
spamfilter {
regex "^/{0,2}((NickServ)|(ChanServ) )?IDENTIFY .+$";
target { private; channel; };
action block;
reason "Don't forget to put a / in front of IDENTIFY commands, or push ENTER, not CTRL+ENTER!";
};
// This will block accidentally using . instead of / - they're right next to each other on the US standard keyboards :P .
spamfilter {
regex "^\.+(NickServ)|(ChanServ) IDENTIFY .+$";
target { prviate; channel; };
action block;
reason "Use /, not .!";
};
// Same as the first, but for /msg NicKServ or /msg ChanServ (with and without @services qualifier - replace this with your services server bottom-level name if needed).
spamfilter {
regex "^/{0,2}msg ((NickServ)|(ChanServ))(@services..+)? IDENTIFY .+$";
target { private; channel; };
action block;
reason "Don't forget to put a / in front of IDENTIFY commands, or push ENTER, not CTRL+ENTER!";
};
// Same as the second, but for /msg NickServ, etc as with the third.
spamfilter {
regex "^\.+msg ((NickServ)|(ChanServ))(@services..+)? IDENTIFY .+$";
target { prviate; channel; };
action block;
reason "Use /, not .!";
};
*edit* on the same token we could use this for accidental "mis"-/oper as well (I saw this once!)... this should work:
Code: Select all
spamfilter {
regex "^((\.)?)|(/{0,2})oper [^ ]+ [^ ]+$";
target { private; channel; };
reason "Maybe you should type your /oper stuff in a status window?";
action block;
};