- 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-b93c2d0d6712master
parent
9a83b8823d
commit
f20666f7fc
|
@ -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>"')
|
||||
|
||||
|
|
Loading…
Reference in New Issue