parameters: (params="")
docstring: accept an invitation
docstring_summary: accept an invitation
docstring_tokens: accept an invitation
function: def AcceptInvitation(params=""):
      "accept an invitation"
      PtDebugPrint("xInvite: accept invitation",level=kDebugDumpLevel)
      paramlist = SplitParams(params)
      if len(paramlist) == 2:
          PtAcceptInviteInGame(paramlist[0],paramlist[1])
          return PtGetLocalizedString("KI.Invitation.InviteAccepted", [str(paramlist[0]), str(paramlist[1])])
      else:
          return (1,PtGetLocalizedString("KI.Invitation.AcceptUsage"))
function_tokens: def AcceptInvitation ( params = "" ) : PtDebugPrint ( "xInvite: accept invitation" , level = kDebugDumpLevel ) paramlist = SplitParams ( params ) if len ( paramlist ) == 2 : PtAcceptInviteInGame ( paramlist [ 0 ] , paramlist [ 1 ] ) return PtGetLocalizedString ( "KI.Invitation.InviteAccepted" , [ str ( paramlist [ 0 ] ) , str ( paramlist [ 1 ] ) ] ) else : return ( 1 , PtGetLocalizedString ( "KI.Invitation.AcceptUsage" ) )