i changed the notice command to work like a report command.
you use !cfh spoon hacking
if there is a moderator online it sends a pm to all online mods/admins or if there is no mods/admins online it logs the report were the notices go. so you can check them using echelon or the superadmin plugin(i think)
def cmd_cfh(self, data, client=None, cmd=None):
"""\
<name> <reason> - Send a Call For Help to the Moderators about a player
"""
m = self.parseUserCmd(data)
if not m or m[0] == '' or m[1] == '':
client.message('^7Invalid parameters')
return False
cid, notice = m
sclient = self.findClientPrompt(cid, client)
self.debug('trying to get admins')
clist = self.getAdmins()
if len(clist) > 0:
for adm in clist:
adm.message('^7 %s ^7has been reported for:^2 %s' % (sclient.exactName, notice))
else:
if sclient:
sclient.notice(notice, None, client)
client.message('^7Your ^5Call For Help^2 %s ^7has been sent to the Moderators about^2 %s' % (notice, sclient.exactName))