projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad59028
)
Fix code that ignores capability modifiers
author
Jack Allnutt
<jack@allnutt.eu>
Sat, 28 Sep 2013 16:52:25 +0000
(17:52 +0100)
committer
Jack Allnutt
<jack@allnutt.eu>
Sat, 28 Sep 2013 16:52:25 +0000
(17:52 +0100)
No longer remove a '-' from the middle of a capability name
server/irc/commands.js
patch
|
blob
|
blame
|
history
diff --git
a/server/irc/commands.js
b/server/irc/commands.js
index 4778c9eeac55dc2777715b96c112615cdf93ceda..e37d454491e79d14cfa7ff8b5735dd98710cf611 100644
(file)
--- a/
server/irc/commands.js
+++ b/
server/irc/commands.js
@@
-539,7
+539,7
@@
handlers = {
'CAP': function (command) {
// TODO: capability modifiers
// i.e. - for disable, ~ for requires ACK, = for sticky
- var capabilities = command.trailing.replace(/[\-~=]/, '').split(' ');
+ var capabilities = command.trailing.replace(/
(?:^| )
[\-~=]/, '').split(' ');
var request;
// Which capabilities we want to enable