mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
Merge pull request #18 from CodeBlock/master
IRC nick regex.
This commit is contained in:
commit
961a1498aa
1 changed files with 2 additions and 2 deletions
|
@ -56,9 +56,9 @@ final class PhabricatorIRCBot extends PhabricatorDaemon {
|
|||
|
||||
$nick = idx($config, 'nick', 'phabot');
|
||||
|
||||
if (!preg_match('/^[A-Za-z0-9_]+$/', $nick)) {
|
||||
if (!preg_match('/^[A-Za-z0-9_`[{}^|\]\\-]+$/', $nick)) {
|
||||
throw new Exception(
|
||||
"Nickname '{$nick}' is invalid, must be alphanumeric!");
|
||||
"Nickname '{$nick}' is invalid!");
|
||||
}
|
||||
|
||||
if (!$join) {
|
||||
|
|
Loading…
Reference in a new issue