Skip to content

Commit

Permalink
bugfix for multi-line spanning help message
Browse files Browse the repository at this point in the history
  • Loading branch information
juvenn committed Jan 17, 2010
1 parent a2e87c8 commit e64112d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,13 @@ def hello_command(self, message=None):
# Asking for help
def help_command(self, message=None):
message = xmpp.Message(self.request.POST)
help_msg = "It's not even alpha ready, but you could play with following commands:\n"
+"/hello\n about me\n"
+"/subscribe <url>\n/unsubscribe <url>\n subscribe or unsubscribe to a feed\n"
+"/ls <page_index>\n list subscriptions history\n"
+"/help\n print help info\n"
help_msg = "It's not even alpha ready, but you could play with following commands:\n" \
"/hello\n about me\n" \
"/subscribe <url>\n/unsubscribe <url>\n subscribe or unsubscribe to a feed\n" \
"/ls <page_index>\n list subscriptions, default to page 1\n" \
"/help\n print help info\n"
message.reply(help_msg)
message.reply(message.body)

##
# All other commants
Expand Down

0 comments on commit e64112d

Please sign in to comment.