From: Chris Porter Date: Fri, 3 Jan 2014 13:37:02 +0000 (+0000) Subject: missed sequence number from sync posts X-Git-Url: https://jfr.im/git/irc/quakenet/qwebirc.git/commitdiff_plain/06dbebbc194d88d204cf8a46385a556f58e3c1a5 missed sequence number from sync posts --- diff --git a/js/irc/ircconnection.js b/js/irc/ircconnection.js index 0363ef8..58295ca 100644 --- a/js/irc/ircconnection.js +++ b/js/irc/ircconnection.js @@ -124,7 +124,7 @@ qwebirc.irc.IRCConnection = new Class({ return false; if(synchronous) { - this.__send(data, false); + this.__send([this.__pubSeqNo, data], false); } else if(this.__ws && this.__wsAuthed) { /* seqno here is currently pointless but it's nice to enforce it in the protocol */ this.__ws.send("p" + this.__pubSeqNo + "," + data); diff --git a/qwebirc/engines/ajaxengine.py b/qwebirc/engines/ajaxengine.py index 3a1c024..e885e61 100644 --- a/qwebirc/engines/ajaxengine.py +++ b/qwebirc/engines/ajaxengine.py @@ -312,7 +312,7 @@ class AJAXEngine(resource.Resource): if seq_no < 0 or seq_no > MAX_SEQNO: raise ValueError except ValueError: - raise AJAXEngine, "Bad sequence number" + raise AJAXEngine("Bad sequence number %r" % seq_no) session = self.getSession(request) try: