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;
};