]> jfr.im git - irc/weechat/qweechat.git/commitdiff
Convert time object to integer (instead of string)
authorSebastien Helleu <redacted>
Sat, 21 Jul 2012 15:38:16 +0000 (17:38 +0200)
committerSebastien Helleu <redacted>
Sat, 21 Jul 2012 15:38:16 +0000 (17:38 +0200)
src/qweechat/weechat/protocol.py

index f99335204598f8e0a297447d271e3c07f35f4e42..40f1a4aa5396540baa7c4f08d5cbfce67daea9f2 100644 (file)
@@ -186,7 +186,7 @@ class Protocol:
         value = self._obj_len_data(1)
         if value is None:
             return None
-        return str(value)
+        return int(str(value))
 
     def _obj_hashtable(self):
         """Read a hashtable in data (type for keys + type for values + count + items)."""