forked from GitHub/dbot
some fixes for punctuation
This commit is contained in:
parent
cc52b81eb2
commit
a5eda46339
@ -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', {
|
||||
|
Loading…
Reference in New Issue
Block a user