Commits

Josh VanderLinden committed 0e51da6

Fixing a bug?

Comments (0)

Files changed (1)

weechat/zedifier.py

 
         now = time.time()
 
-        if self.last_time is None or now - self.last_time > 15:
-            if obj != self.last_msg:
-                self.pub.send_json(obj)
+        if obj != self.last_msg or \
+                self.last_time is None or \
+                now - self.last_time > 15:
+            self.pub.send_json(obj)
 
         self.last_msg = obj
         self.last_time = now