#NEWLINE# def msg( self , msg = '' , to_obj = None , from_obj = None , session = None , **kwargs ) : #NEWLINE# #INDENT# '\n        This is a shortcut instad of calling msg() directly on an\n        object - it will detect if caller is an Object or a Player and\n        also appends self.session automatically.\n\n        Args:\n            msg (str, optional): Text string of message to send.\n            to_obj (Object, optional): Target object of message. Defaults to self.caller.\n            from_obj (Object, optional): Source of message. Defaults to to_obj.\n            session (Session, optional): Supply data only to a unique\n                session.\n\n        Kwargs:\n            kwargs (any): These are all passed on to the message mechanism. Common\n                keywords are `oob` and `raw`.\n\n        ' #NEWLINE# from_obj = ( from_obj or self . caller ) #NEWLINE# to_obj = ( to_obj or from_obj ) #NEWLINE# if ( not session ) : #NEWLINE# #INDENT# if ( to_obj == self . caller ) : #NEWLINE# #INDENT# session = self . session #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# session = to_obj . sessions . get ( ) #NEWLINE# #UNINDENT# #UNINDENT# to_obj . msg ( msg , from_obj = from_obj , session = session , ** kwargs )