Skip to content
Browse files

allow a url param for command line test of httpclient. fix for empty …

…private messages
  • Loading branch information...
1 parent 20c24e9 commit 4250518783fdc6a9299a27e27bc59b63e22ec292 @thepug committed Jan 6, 2009
Showing with 3 additions and 2 deletions.
  1. +2 −1 speeqeweb/httpbclient.py
  2. +1 −1 speeqewebclient/scripts/messageview.js
View
3 speeqeweb/httpbclient.py
@@ -211,7 +211,8 @@ def startSessionAndAuth(self, hold = '1', wait = '70', headers = None):
PASSWORD = sys.argv[2]
HOST = sys.argv[3]
PORT = sys.argv[4]
- c = PunjabClient(USERNAME, PASSWORD, HOST, PORT)
+ URL = sys.argv[5]
+ c = PunjabClient(USERNAME, PASSWORD, HOST, PORT, URL)
c.startSessionAndAuth()
print c.logged_in
View
2 speeqewebclient/scripts/messageview.js
@@ -105,7 +105,7 @@ Speeqe.MessageView.prototype = {
/*Used to display when the user sends a private message.*/
if(private_message && (!message || (message == "")))
{
- message = $(stanza).text();
+ message = jQuery.trim($(stanza).text());
}
if (!Speeqe.testSupportedTags(message))

0 comments on commit 4250518

Please sign in to comment.
Something went wrong with that request. Please try again.