From ebb8e5dbe8dd041f385dc831a4e2dff31b97cd7d Mon Sep 17 00:00:00 2001 From: temitchell Date: Sun, 19 Sep 2004 05:56:52 +0000 Subject: [PATCH] - fix help message - add info command which dumps the record. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2917 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/IPO/seen.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/python/IPO/seen.py b/python/IPO/seen.py index 8d4ac2e52..3f66a68ef 100644 --- a/python/IPO/seen.py +++ b/python/IPO/seen.py @@ -57,7 +57,7 @@ if text[0] == 'seen': elif text[0] == 'help': if isDM: - message = "How can I help you? Here is a quick list of commands:\nseen, muzzlestatus, muzzlecount, lastmuzzle, kickcount, lastkick" + message = "How can I help you? Here is a quick list of commands:\nseen, info, muzzlecount, lastmuzzle, kickcount, lastkick" else: message = "I have seen just about everybody - go ahead and ask me." @@ -101,6 +101,15 @@ elif text[0] == 'lastkick' and isDM: else: message = 'Usage "lastkick "' +elif text[0] == 'info' and isDM: + if len(text)==2: + record = log.info(text[1]) + if record: + message = "%s" % (record) + else: + message = "I have no knowledge of '%s'." % text[1] + else: + message = 'Usage "info "' else: message = "Do you need help?"