mirror of
https://github.com/reality/dbot.git
synced 2025-02-17 14:01:04 +01:00
some fixes for punctuation
This commit is contained in:
parent
cc52b81eb2
commit
a5eda46339
@ -140,12 +140,12 @@ var report = function(dbot) {
|
|||||||
cChan + "\u000f";
|
cChan + "\u000f";
|
||||||
}
|
}
|
||||||
|
|
||||||
_.each(message.match(/@([\d\w\s*|-]+?)( |$)/g), function(user) {
|
_.each(message.match(/@([\d\w\s*|-]+?)( |$|,|\.)/g), function(user) {
|
||||||
user = user.replace(/@([\d\w\s*|-]+?)( |$)/, "$1");
|
user = user.replace(/@([\d\w\s*|-]+?)( |$|,|\.)/, "$1");
|
||||||
notifier += '[' + colours['nicks'] + user + '\u000f]';
|
notifier += '[' + colours['nicks'] + user + '\u000f]';
|
||||||
});
|
});
|
||||||
message = message.replace(/@([\d\w\s*|-]+?)( |$)/g, colours['nicks'] +
|
message = message.replace(/@([\d\w\s*|-]+?)( |$|,|\.)/g, colours['nicks'] +
|
||||||
"@$1\u000f ");
|
"@$1\u000f$2");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.api.notify(event.server, channelName, dbot.t('notify', {
|
this.api.notify(event.server, channelName, dbot.t('notify', {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user