fixed 0000011
authorfoldericon <foldericon@gmail.com>
Sun, 4 Nov 2012 09:26:44 +0000 (10:26 +0100)
committerfoldericon <foldericon@gmail.com>
Sun, 4 Nov 2012 09:26:44 +0000 (10:26 +0100)
public/classes.js

index 9ee5da3b6a6bc3143574f41652bd594859d989dd..4f88c8bce00b5eee64c68f21a3226b5c4135d1c8 100644 (file)
@@ -902,10 +902,14 @@ var Utf8 = {
                     case '311':
                         match = msg.match(/^([A-Za-z0-9_\-\[\]\\^{}|`]+) ([A-Za-z0-9_\-\[\]\\^{}|`]+) ([A-Za-z0-9.]+) .+ \:(.+)/);
                         msg = match[1] + " has userhost " + match[3] + " and realname " + match[4];                    
+                        msg = '<span class="logmessage"><time> ' + msg;
+                        objChan.addMessage(msg);                        
                         break;
                     case '312':
                         match = msg.match(/^([A-Za-z0-9_\-\[\]\\^{}|`]+) (.+)/);
                         msg = match[1] + " is connected on " + match[2].split(' :')[0] + ' (' + match[2].split(' :')[1] + ')';
+                        msg = '<span class="logmessage"><time> ' + msg;
+                        objChan.addMessage(msg);                        
                         break;                         
                     case '317':
                         match = msg.match(/^([A-Za-z0-9_\-\[\]\\^{}|`]+) ([0-9]{1,10}) ([0-9]{1,10}) \:(.+), (.+)/);
@@ -915,6 +919,8 @@ var Utf8 = {
                         var seconds = parseInt(match[2]) % 60;
                         var result = (hours < 10 ? "0" + hours : hours) + ":" + (minutes < 10 ? ":" + minutes : minutes) + ":" + (seconds  < 10 ? "0" + seconds : seconds);
                         msg = match[1] + " signed on at " + dateOn + " and has been idle for " + result;
+                        msg = '<span class="logmessage"><time> ' + msg;
+                        objChan.addMessage(msg);                        
                         break;
                     case '318':
                         return;                        
@@ -922,19 +928,23 @@ var Utf8 = {
                         match = msg.match(/^([A-Za-z0-9_\-\[\]\\^{}|`]+) \:(.+)/);
                         msg = match[2].replace(/ $/,'').split(' ').join(', ');
                         msg = match[1] + " is on " + msg;
+                        msg = '<span class="logmessage"><time> ' + msg;
+                        objChan.addMessage(msg);                        
                         break;
                     case '320':                        
                         match = msg.match(/([A-Za-z0-9_\-\[\]\\^{}|`]+) \:(.+)/);
                         msg = match[1] + " " + match[2];
+                        msg = '<span class="logmessage"><time> ' + msg;
+                        objChan.addMessage(msg);                        
                         break;                                               
                     case '330':
                         match = msg.match(/^([A-Za-z0-9_\-\[\]\\^{}|`]+) (.+)/);
                         msg = match[1] + " " + match[2].split(' :')[1] + ' ' + match[2].split(' :')[0];
+                        msg = '<span class="logmessage"><time> ' + msg;
+                        objChan.addMessage(msg);                        
                         break;                        
                     break;
                 } 
-                msg = '<span class="logmessage"><time> ' + msg;
-                objChan.addMessage(msg);
             }
         }                
     }