I'm trying to tweak the whisper code, the original coding is as follows:
on *:INPUT:?: {
if ($Left($1, 1) != /) {
inc -eu1 %inputsend
if ($target ison $hget(mc_temp,ircWxwhisper. [ $+ [ $target ] ])) {
if ($hget(mc_temp,ircWxwhisperaccept. [ $+ [ $target ] ])) {
.raw data $hget(mc_temp,ircWxwhisper. [ $+ [ $target ] ]) $target CMWHISP :WHISPACCEPTED
hdel mc_temp ircWxwhisperaccept. [ $+ [ $target ] ]
echo -130 $target $stime($target) 3You have accepted a whisper invitation from $target on $hget(mc_temp,ircWxwhisper. [ $+ [ $target ] ]) $+ $chr(160)
}
.raw WHISPER $hget(mc_temp,ircWxwhisper. [ $+ [ $target ] ]) $target $mycolorsend($1-)
}
What I'm trying to accomplish is adding this line of code:
var %myinput = $1-
var %dtext = $replacexcs($regsubex(%myinput,/^([a-z])|\b(i)\b/g,$upper(\t)),doesnt,doesn't,cant,can't, couldnt, couldn't, wouldnt, wouldn't, shouldnt, shouldn't, didnt, didn't, isnt, isn't, theyll, they'll, wasnt, wasn't, havent, haven't, dont, don't, thats, that's)
I'm not sure where to put this in the whisper section (or if my coding is correct), when I experiment, I get a whisper error at line 257.
Thoughts?