Difference for python/IPO/say.py from version 1.3 to 1.4


version 1.3 version 1.4
Line 74
 
Line 74
   
 elif text[0] == 'mailscroll':  elif text[0] == 'mailscroll':
  if len(text)==2:   if len(text)==2:
  if log.exist(text[1]):   if log.info(text[1]):
  if (CFPython.PayAmount(activator, priceMailScroll*50)):   if (CFPython.PayAmount(activator, priceMailScroll*50)):
  CFPython.Say(whoami, 'Here is your mailscroll')   CFPython.Say(whoami, 'Here is your mailscroll')
  id = CFPython.CreateObject('scroll', (x, y))   id = CFPython.CreateObject('scroll', (x, y))
Line 92
 
Line 92
 elif text[0] == 'mailwarning':  elif text[0] == 'mailwarning':
  if (CFPython.IsDungeonMaster(activator)):   if (CFPython.IsDungeonMaster(activator)):
  if len(text)==2:   if len(text)==2:
  if log.exist(text[1]):   if log.info(text[1]):
  CFPython.Say(whoami, 'Here is your mailwarning')   CFPython.Say(whoami, 'Here is your mailwarning')
  id = CFPython.CreateObject('diploma', (x, y))   id = CFPython.CreateObject('diploma', (x, y))
  CFPython.SetName(id, 'mailwarning T: '+text[1]+' F: '+ activatorname)   CFPython.SetName(id, 'mailwarning T: '+text[1]+' F: '+ activatorname)
Line 105
 
Line 105
  else:   else:
  CFPython.Say(whoami, 'You need to be DM to be able to use this command')   CFPython.Say(whoami, 'You need to be DM to be able to use this command')
   
   
 elif 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))  
  else:  
  CFPython.Say(whoami, "I have never seen '%s' joining" % text[1])  
  else:  
  CFPython.Say(whoami, 'Usage "seen <friend>"')  
   
 else:  else:
  CFPython.Say(whoami, 'Do you need help?')   CFPython.Say(whoami, 'Do you need help?')


Legend:
line(s) removed in v.1.3 
line(s) changed
 line(s) added in v.1.4

File made using version 1.96 of cvs2html by leaf at 2006-02-15 17:29