Allowing * in nicks for ZNC *status nick
authorDarren <darren@Darrens-MacBook-Pro.local>
Sun, 7 Apr 2013 14:52:15 +0000 (15:52 +0100)
committerDarren <darren@Darrens-MacBook-Pro.local>
Sun, 7 Apr 2013 14:52:15 +0000 (15:52 +0100)
server/irc/connection.js

index d4f1a032276cec4b2813e19e61342bcc25a78ce5..e6ba18a365b640a7c59e6933a8d7059dfa9366dc 100644 (file)
@@ -396,7 +396,7 @@ function findWebIrc(connect_data) {
  * Deviates from the RFC a little to support the '/' character now used in some
  * IRCds
  */
-var parse_regex = /^(?:(?:(?:(@[^ ]+) )?):(?:([a-z0-9\x5B-\x60\x7B-\x7D\.\-]+)|([a-z0-9\x5B-\x60\x7B-\x7D\.\-]+)!([a-z0-9~\.\-_|]+)@?([a-z0-9\.\-:\/_]+)?) )?(\S+)(?: (?!:)(.+?))?(?: :(.+))?$/i;
+var parse_regex = /^(?:(?:(?:(@[^ ]+) )?):(?:([a-z0-9\x5B-\x60\x7B-\x7D\.\-*]+)|([a-z0-9\x5B-\x60\x7B-\x7D\.\-*]+)!([a-z0-9~\.\-_|]+)@?([a-z0-9\.\-:\/_]+)?) )?(\S+)(?: (?!:)(.+?))?(?: :(.+))?$/i;
 
 var parse = function (data) {
     var i,