From f20666f7fc0b2603ffc5633cb231d54d6e68d7dd Mon Sep 17 00:00:00 2001 From: temitchell Date: Fri, 1 Aug 2003 02:24:28 +0000 Subject: [PATCH] - add in DM check so that seen script gives DM the last IP used by the player they are asking about. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2277 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/IPO/seen.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python/IPO/seen.py b/python/IPO/seen.py index 2c6ebcd93..38c870d5b 100644 --- a/python/IPO/seen.py +++ b/python/IPO/seen.py @@ -42,9 +42,12 @@ if text[0] == 'seen': if len(text)==2: if log.exist(text[1]): ip, date, count = log.info(text[1]) - CFPython.Say(whoami, "I have seen '%s' joining %d times, last at %s." % (text[1], count, date)) + if (CFPython.IsDungeonMaster(activator)): + CFPython.Say(whoami, "I have seen '%s' %d times.\nI saw them last coming from\nIP: %s\non %s." % (text[1], count, ip, date)) + else: + CFPython.Say(whoami, "I have seen '%s' %d times.\nI saw them last at %s." % (text[1], count, date)) else: - CFPython.Say(whoami, "I have never seen '%s' joining" % text[1]) + CFPython.Say(whoami, "I have never seen '%s'." % text[1]) else: CFPython.Say(whoami, 'Usage "seen "')