|
From: <cro...@li...> - 2003-08-01 02:24:29
|
Module Name: maps-bigworld Committed By: temitchell Date: Fri Aug 1 02:24:28 UTC 2003 Modified Files: maps-bigworld/python/IPO: seen.py Log Message: - add in DM check so that seen script gives DM the last IP used by the player they are asking about. Start of context diffs Index: maps-bigworld/python/IPO/seen.py diff -c maps-bigworld/python/IPO/seen.py:1.1 maps-bigworld/python/IPO/seen.py:1.2 *** maps-bigworld/python/IPO/seen.py:1.1 Thu Jul 24 22:27:20 2003 --- maps-bigworld/python/IPO/seen.py Thu Jul 31 19:24:28 2003 *************** *** 42,50 **** 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)) else: ! CFPython.Say(whoami, "I have never seen '%s' joining" % text[1]) else: CFPython.Say(whoami, 'Usage "seen <friend>"') --- 42,53 ---- if len(text)==2: if log.exist(text[1]): ip, date, count = log.info(text[1]) ! 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'." % text[1]) else: CFPython.Say(whoami, 'Usage "seen <friend>"') |