• R/O
  • HTTP
  • SSH
  • HTTPS

WebChat: Commit

チャットシステム


Commit MetaInfo

Revision2c40b3b42579440be0b31ebde4276fc30544a8d5 (tree)
Time2014-05-31 02:17:53
Authorkonekoneko <jbh03215@hotm...>
Commiterkonekoneko

Log Message

$name[name]がundefinedになることがあった

Change Summary

Incremental Difference

--- a/public/scripts/chatclient.js
+++ b/public/scripts/chatclient.js
@@ -157,7 +157,7 @@ function ParseMessage(msg)
157157 var mailto = "";
158158 var date = new Date(Date.parse(msg.date));
159159 var name = util.htmlspecialchars(msg.name);
160- if(name != $system_name)
160+ if(name != $system_name && name in $names)
161161 {
162162 color = $names[name].color;
163163 $names[name].time = date.getTime();
Show on old repository browser