- 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
master
temitchell 2003-08-01 02:24:28 +00:00
parent 9a83b8823d
commit f20666f7fc
1 changed files with 5 additions and 2 deletions

View File

@ -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 <friend>"')