Browse Source

Use username for irc nick

spaghetti 8 years ago
parent
commit
467babc1f1
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      sections/chat/index.php

+ 1
- 2
sections/chat/index.php View File

39
 <?
39
 <?
40
   } else {
40
   } else {
41
     $nick = $LoggedUser['Username'];
41
     $nick = $LoggedUser['Username'];
42
-    $nick = preg_replace('/[^a-zA-Z0-9\[\]\\`\^\{\}\|_]/', '', $nick);
43
     if (strlen($nick) == 0) {
42
     if (strlen($nick) == 0) {
44
       $nick = SITE_NAME.'Guest????';
43
       $nick = SITE_NAME.'Guest????';
45
     } else {
44
     } else {
56
     <div style="padding: 0px 10px 10px 20px;">
55
     <div style="padding: 0px 10px 10px 20px;">
57
       <p>If you have an IRC client, refer to <a href="wiki.php?action=article&amp;name=IRC">this wiki article</a> for information on how to connect.</p>
56
       <p>If you have an IRC client, refer to <a href="wiki.php?action=article&amp;name=IRC">this wiki article</a> for information on how to connect.</p>
58
     </div>
57
     </div>
59
-    <iframe src="<?echo 'https://chat.'.SITE_DOMAIN?>" width="100%" height="600" style="border:0;">
58
+    <iframe src="<?echo 'https://chat.'.SITE_DOMAIN.'?nick='.$nick?>" width="100%" height="600" style="border:0;">
60
     </iframe>
59
     </iframe>
61
   </div>
60
   </div>
62
 </div>
61
 </div>

Loading…
Cancel
Save