Browse Source

nicks: forbid :

Andrew Dolgov 2 years ago
parent
commit
9990c2d98e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      include/functions.php

+ 3 - 1
include/functions.php

@@ -124,7 +124,9 @@
 	}
 
 	function validate_nick($nick) {
-		return strip_prefix(trim(mb_substr($nick, 0, 119)));
+		$tmp = strip_prefix(trim(mb_substr($nick, 0, 119)));
+		$tmp = str_replace(":", "", $tmp);
+		return $tmp;
 	}
 
 	function is_instance($link, $connection_id) {