I wonder whether it would be a good idea to disallow any replies in the ChatterBox that start with ^\s*/m, but which are not /me or /msg. Instead a warning should be issued, similar to when you accidentally say the same thing twice.
This would prevent sometimes more or less private message to become embarassingly public.
I guess the code would be something like:
print "Don't know how to '/m$1', maybe you meant /me or /msg?\n" if $line =~ m#^\s*/m(\w*)# and $1 !~ m#^(e|sg)$#;
Unless of course we all want to continue to peek into people's private conversations, then we don't need this at all ;-)
Liz
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: warn for !/m(e|sg) in CB?
by phydeauxarff (Priest) on Aug 20, 2003 at 12:28 UTC | |
Re: warn for !/m(e|sg) in CB?
by valdez (Monsignor) on Aug 20, 2003 at 12:29 UTC | |
Re: warn for !/m(e|sg) in CB? (no)
by tye (Sage) on Aug 20, 2003 at 16:22 UTC | |
by mpd (Monk) on Aug 20, 2003 at 17:16 UTC | |
by Anonymous Monk on Aug 20, 2003 at 16:33 UTC | |
Re: warn for !/m(e|sg) in CB?
by BrowserUk (Patriarch) on Aug 20, 2003 at 14:30 UTC | |
by Aristotle (Chancellor) on Aug 24, 2003 at 06:22 UTC | |
Re: warn for !/m(e|sg) in CB?
by tcf22 (Priest) on Aug 20, 2003 at 14:36 UTC | |
Re: warn for !/m(e|sg) in CB?
by VSarkiss (Monsignor) on Aug 20, 2003 at 15:47 UTC | |
Re: warn for !/m(e|sg) in CB?
by pfaut (Priest) on Aug 20, 2003 at 22:18 UTC | |
Re: warn for !/m(e|sg) in CB?
by demerphq (Chancellor) on Aug 22, 2003 at 20:52 UTC | |
by liz (Monsignor) on Aug 22, 2003 at 20:56 UTC |
Back to
Perl Monks Discussion