some fixes for punctuation

This commit is contained in:
reality 2013-08-21 19:57:19 +00:00
parent cc52b81eb2
commit a5eda46339

View File

@ -140,12 +140,12 @@ var report = function(dbot) {
cChan + "\u000f";
}
_.each(message.match(/@([\d\w\s*|-]+?)( |$)/g), function(user) {
user = user.replace(/@([\d\w\s*|-]+?)( |$)/, "$1");
_.each(message.match(/@([\d\w\s*|-]+?)( |$|,|\.)/g), function(user) {
user = user.replace(/@([\d\w\s*|-]+?)( |$|,|\.)/, "$1");
notifier += '[' + colours['nicks'] + user + '\u000f]';
});
message = message.replace(/@([\d\w\s*|-]+?)( |$)/g, colours['nicks'] +
"@$1\u000f ");
message = message.replace(/@([\d\w\s*|-]+?)( |$|,|\.)/g, colours['nicks'] +
"@$1\u000f$2");
}
this.api.notify(event.server, channelName, dbot.t('notify', {