Difference for python/IPO/board.py from version 1.5 to 1.6


version 1.5 version 1.6
Line 32
 
Line 32
 activatorname=activator.Name  activatorname=activator.Name
 whoami=Crossfire.WhoAmI()  whoami=Crossfire.WhoAmI()
   
 boardname=Crossfire.ScriptParameters() # 6 is say event  boardname = Crossfire.ScriptParameters()
 print "Activated %s" %boardname  if boardname:
   
 if (boardname):  
   
  text = string.split(Crossfire.WhatIsMessage(), ' ', 1)   text = string.split(Crossfire.WhatIsMessage(), ' ', 1)
   
Line 66
 
Line 64
   
  elif text[0] == 'remove':   elif text[0] == 'remove':
  if len(text)==2:   if len(text)==2:
  if board.getauthor(boardname,int(text[1]))==activatorname or activator.IsDungeonMaster:   index = int(text[1])
  if board.delete(boardname, int(text[1])):   if board.getauthor(boardname, index) == activatorname or activator.DungeonMaster:
    if board.delete(boardname, index):
  activator.Write('Removed from %s'%boardname)   activator.Write('Removed from %s'%boardname)
  else:   else:
  activator.Write('Doesn\'t exist on %s'%boardname)   activator.Write('Doesn\'t exist on %s'%boardname)


Legend:
line(s) removed in v.1.5 
line(s) changed
 line(s) added in v.1.6

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