Package gozerbot :: Module jabbermsg :: Class Jabbermsg
[hide private]
[frames] | no frames]

Class Jabbermsg

source code

xmpp.simplexml.Node --+        
                      |        
 xmpp.protocol.Protocol --+    
                          |    
      xmpp.protocol.Message --+
                              |
                             Jabbermsg

jabber message object

Instance Methods [hide private]
 
__init__(self, msg=None)
Create message object.
source code
 
__del__(self) source code
 
filtered(self, txt) source code
 
reply(self, txt, result=None, nick=None, dot=False, nritems=False, nr=False, fromm=None)
reply txt ..
source code
 
toirc(self, bot)
set ircevent compat attributes
source code
 
copyin(self, jmsg)
copy in another jabber message object
source code
 
ircstr(self)
return a ircevent repr compatible string
source code
 
missing(self, txt)
method to call when command arguments are missing
source code

Inherited from xmpp.protocol.Message: buildReply, getBody, getSubject, getThread, setBody, setSubject, setThread

Inherited from xmpp.protocol.Protocol: __setitem__, getError, getErrorCode, getFrom, getID, getProperties, getTimestamp, getTo, getType, setError, setFrom, setID, setTimestamp, setTo, setType

Inherited from xmpp.simplexml.Node: __delitem__, __getattr__, __getitem__, __str__, addChild, addData, clearData, delAttr, delChild, getAttr, getAttrs, getChildren, getData, getName, getNamespace, getParent, getPayload, getTag, getTagAttr, getTagData, getTags, has_attr, setAttr, setData, setName, setNamespace, setParent, setPayload, setTag, setTagAttr, setTagData

Class Variables [hide private]

Inherited from xmpp.simplexml.Node: FORCE_NODE_RECREATION

Method Details [hide private]

__init__(self, msg=None)
(Constructor)

source code 

Create message object. You can specify recipient, text of message, type of message any additional attributes, sender of the message, any additional payload (f.e. jabber:x:delay element) and namespace in one go. Alternatively you can pass in the other XML object as the 'node' parameted to replicate it as message.

Overrides: xmpp.simplexml.Node.__init__
(inherited documentation)

reply(self, txt, result=None, nick=None, dot=False, nritems=False, nr=False, fromm=None)

source code 

reply txt .. first check if queue then if DCC then /msg otherwise assume channel