mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 11:09:56 +00:00
Merge pull request #132 from rhcarvalho/master
Fix a typo in several files.
This commit is contained in:
commit
fb5a6a7d71
10 changed files with 20 additions and 20 deletions
|
@ -40,7 +40,7 @@ class CommandBot(sleekxmpp.ClientXMPP):
|
||||||
# The session_start event will be triggered when
|
# The session_start event will be triggered when
|
||||||
# the bot establishes its connection with the server
|
# the bot establishes its connection with the server
|
||||||
# and the XML streams are ready for use. We want to
|
# and the XML streams are ready for use. We want to
|
||||||
# listen for this event so that we we can intialize
|
# listen for this event so that we we can initialize
|
||||||
# our roster.
|
# our roster.
|
||||||
self.add_event_handler("session_start", self.start)
|
self.add_event_handler("session_start", self.start)
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ class CommandBot(sleekxmpp.ClientXMPP):
|
||||||
Process the session_start event.
|
Process the session_start event.
|
||||||
|
|
||||||
Typical actions for the session_start event are
|
Typical actions for the session_start event are
|
||||||
requesting the roster and broadcasting an intial
|
requesting the roster and broadcasting an initial
|
||||||
presence stanza.
|
presence stanza.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
@ -71,7 +71,7 @@ class CommandBot(sleekxmpp.ClientXMPP):
|
||||||
|
|
||||||
def _handle_command(self, iq, session):
|
def _handle_command(self, iq, session):
|
||||||
"""
|
"""
|
||||||
Respond to the intial request for a command.
|
Respond to the initial request for a command.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
iq -- The iq stanza containing the command request.
|
iq -- The iq stanza containing the command request.
|
||||||
|
|
|
@ -43,7 +43,7 @@ class CommandUserBot(sleekxmpp.ClientXMPP):
|
||||||
# The session_start event will be triggered when
|
# The session_start event will be triggered when
|
||||||
# the bot establishes its connection with the server
|
# the bot establishes its connection with the server
|
||||||
# and the XML streams are ready for use. We want to
|
# and the XML streams are ready for use. We want to
|
||||||
# listen for this event so that we we can intialize
|
# listen for this event so that we we can initialize
|
||||||
# our roster.
|
# our roster.
|
||||||
self.add_event_handler("session_start", self.start)
|
self.add_event_handler("session_start", self.start)
|
||||||
self.add_event_handler("message", self.message)
|
self.add_event_handler("message", self.message)
|
||||||
|
@ -53,7 +53,7 @@ class CommandUserBot(sleekxmpp.ClientXMPP):
|
||||||
Process the session_start event.
|
Process the session_start event.
|
||||||
|
|
||||||
Typical actions for the session_start event are
|
Typical actions for the session_start event are
|
||||||
requesting the roster and broadcasting an intial
|
requesting the roster and broadcasting an initial
|
||||||
presence stanza.
|
presence stanza.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
|
@ -60,7 +60,7 @@ class Disco(sleekxmpp.ClientXMPP):
|
||||||
# The session_start event will be triggered when
|
# The session_start event will be triggered when
|
||||||
# the bot establishes its connection with the server
|
# the bot establishes its connection with the server
|
||||||
# and the XML streams are ready for use. We want to
|
# and the XML streams are ready for use. We want to
|
||||||
# listen for this event so that we we can intialize
|
# listen for this event so that we we can initialize
|
||||||
# our roster.
|
# our roster.
|
||||||
self.add_event_handler("session_start", self.start)
|
self.add_event_handler("session_start", self.start)
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ class Disco(sleekxmpp.ClientXMPP):
|
||||||
Process the session_start event.
|
Process the session_start event.
|
||||||
|
|
||||||
Typical actions for the session_start event are
|
Typical actions for the session_start event are
|
||||||
requesting the roster and broadcasting an intial
|
requesting the roster and broadcasting an initial
|
||||||
presence stanza.
|
presence stanza.
|
||||||
|
|
||||||
In this case, we send disco#info and disco#items
|
In this case, we send disco#info and disco#items
|
||||||
|
|
|
@ -40,7 +40,7 @@ class EchoBot(sleekxmpp.ClientXMPP):
|
||||||
# The session_start event will be triggered when
|
# The session_start event will be triggered when
|
||||||
# the bot establishes its connection with the server
|
# the bot establishes its connection with the server
|
||||||
# and the XML streams are ready for use. We want to
|
# and the XML streams are ready for use. We want to
|
||||||
# listen for this event so that we we can intialize
|
# listen for this event so that we we can initialize
|
||||||
# our roster.
|
# our roster.
|
||||||
self.add_event_handler("session_start", self.start)
|
self.add_event_handler("session_start", self.start)
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ class EchoBot(sleekxmpp.ClientXMPP):
|
||||||
Process the session_start event.
|
Process the session_start event.
|
||||||
|
|
||||||
Typical actions for the session_start event are
|
Typical actions for the session_start event are
|
||||||
requesting the roster and broadcasting an intial
|
requesting the roster and broadcasting an initial
|
||||||
presence stanza.
|
presence stanza.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
|
@ -44,7 +44,7 @@ class MUCBot(sleekxmpp.ClientXMPP):
|
||||||
# The session_start event will be triggered when
|
# The session_start event will be triggered when
|
||||||
# the bot establishes its connection with the server
|
# the bot establishes its connection with the server
|
||||||
# and the XML streams are ready for use. We want to
|
# and the XML streams are ready for use. We want to
|
||||||
# listen for this event so that we we can intialize
|
# listen for this event so that we we can initialize
|
||||||
# our roster.
|
# our roster.
|
||||||
self.add_event_handler("session_start", self.start)
|
self.add_event_handler("session_start", self.start)
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ class MUCBot(sleekxmpp.ClientXMPP):
|
||||||
Process the session_start event.
|
Process the session_start event.
|
||||||
|
|
||||||
Typical actions for the session_start event are
|
Typical actions for the session_start event are
|
||||||
requesting the roster and broadcasting an intial
|
requesting the roster and broadcasting an initial
|
||||||
presence stanza.
|
presence stanza.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
|
@ -43,7 +43,7 @@ class PingTest(sleekxmpp.ClientXMPP):
|
||||||
# The session_start event will be triggered when
|
# The session_start event will be triggered when
|
||||||
# the bot establishes its connection with the server
|
# the bot establishes its connection with the server
|
||||||
# and the XML streams are ready for use. We want to
|
# and the XML streams are ready for use. We want to
|
||||||
# listen for this event so that we we can intialize
|
# listen for this event so that we we can initialize
|
||||||
# our roster.
|
# our roster.
|
||||||
self.add_event_handler("session_start", self.start)
|
self.add_event_handler("session_start", self.start)
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ class PingTest(sleekxmpp.ClientXMPP):
|
||||||
Process the session_start event.
|
Process the session_start event.
|
||||||
|
|
||||||
Typical actions for the session_start event are
|
Typical actions for the session_start event are
|
||||||
requesting the roster and broadcasting an intial
|
requesting the roster and broadcasting an initial
|
||||||
presence stanza.
|
presence stanza.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
|
@ -40,7 +40,7 @@ class EchoBot(sleekxmpp.ClientXMPP):
|
||||||
# The session_start event will be triggered when
|
# The session_start event will be triggered when
|
||||||
# the bot establishes its connection with the server
|
# the bot establishes its connection with the server
|
||||||
# and the XML streams are ready for use. We want to
|
# and the XML streams are ready for use. We want to
|
||||||
# listen for this event so that we we can intialize
|
# listen for this event so that we we can initialize
|
||||||
# our roster.
|
# our roster.
|
||||||
self.add_event_handler("session_start", self.start)
|
self.add_event_handler("session_start", self.start)
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ class EchoBot(sleekxmpp.ClientXMPP):
|
||||||
Process the session_start event.
|
Process the session_start event.
|
||||||
|
|
||||||
Typical actions for the session_start event are
|
Typical actions for the session_start event are
|
||||||
requesting the roster and broadcasting an intial
|
requesting the roster and broadcasting an initial
|
||||||
presence stanza.
|
presence stanza.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
|
@ -42,7 +42,7 @@ class RosterBrowser(sleekxmpp.ClientXMPP):
|
||||||
# The session_start event will be triggered when
|
# The session_start event will be triggered when
|
||||||
# the bot establishes its connection with the server
|
# the bot establishes its connection with the server
|
||||||
# and the XML streams are ready for use. We want to
|
# and the XML streams are ready for use. We want to
|
||||||
# listen for this event so that we we can intialize
|
# listen for this event so that we we can initialize
|
||||||
# our roster. We need threaded=True so that the
|
# our roster. We need threaded=True so that the
|
||||||
# session_start handler doesn't block event processing
|
# session_start handler doesn't block event processing
|
||||||
# while we wait for presence stanzas to arrive.
|
# while we wait for presence stanzas to arrive.
|
||||||
|
@ -57,7 +57,7 @@ class RosterBrowser(sleekxmpp.ClientXMPP):
|
||||||
Process the session_start event.
|
Process the session_start event.
|
||||||
|
|
||||||
Typical actions for the session_start event are
|
Typical actions for the session_start event are
|
||||||
requesting the roster and broadcasting an intial
|
requesting the roster and broadcasting an initial
|
||||||
presence stanza.
|
presence stanza.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
|
@ -45,7 +45,7 @@ class SendMsgBot(sleekxmpp.ClientXMPP):
|
||||||
# The session_start event will be triggered when
|
# The session_start event will be triggered when
|
||||||
# the bot establishes its connection with the server
|
# the bot establishes its connection with the server
|
||||||
# and the XML streams are ready for use. We want to
|
# and the XML streams are ready for use. We want to
|
||||||
# listen for this event so that we we can intialize
|
# listen for this event so that we we can initialize
|
||||||
# our roster.
|
# our roster.
|
||||||
self.add_event_handler("session_start", self.start)
|
self.add_event_handler("session_start", self.start)
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ class SendMsgBot(sleekxmpp.ClientXMPP):
|
||||||
Process the session_start event.
|
Process the session_start event.
|
||||||
|
|
||||||
Typical actions for the session_start event are
|
Typical actions for the session_start event are
|
||||||
requesting the roster and broadcasting an intial
|
requesting the roster and broadcasting an initial
|
||||||
presence stanza.
|
presence stanza.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
|
@ -149,7 +149,7 @@ class xep_0050(base_plugin):
|
||||||
Access control may be implemented in the provided handler.
|
Access control may be implemented in the provided handler.
|
||||||
|
|
||||||
Command workflow is done across a sequence of command handlers. The
|
Command workflow is done across a sequence of command handlers. The
|
||||||
first handler is given the intial Iq stanza of the request in order
|
first handler is given the initial Iq stanza of the request in order
|
||||||
to support access control. Subsequent handlers are given only the
|
to support access control. Subsequent handlers are given only the
|
||||||
payload items of the command. All handlers will receive the command's
|
payload items of the command. All handlers will receive the command's
|
||||||
session data.
|
session data.
|
||||||
|
|
Loading…
Reference in a new issue