Is this what you wanted?
def cmd_status(self, data, client, cmd=None):
"""\
[<player>] - Shows player cid/status id.
"""
m = self._adminPlugin.parseUserCmd(data)
if m:
sclient = self.findClientPrompt(m[0], client)
else:
sclient = client
if sclient:
if sclient.id == client.id:
client.message('Your Connection ID is %s' % (client.cid))
else:
client.message('%s\'s Connection ID is %s' % (sclient.exactName, sclient.cid))
else:
return False
This is untested.
You can type !status name to get some1 elses cid or just !status to get your own