Update of /cvsroot/wpdev/xmlscripts/scripts/commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5076/commands
Modified Files:
tele.py
Log Message:
Index: tele.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/tele.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** tele.py 1 Nov 2004 17:17:50 -0000 1.5
--- tele.py 1 Nov 2004 17:21:10 -0000 1.6
***************
*** 16,27 ****
def onLoad():
wolfpack.registercommand( "tele", commandTele )
! wolfpack.registercommand( "telem", commandTele )
return
def commandTele( socket, cmd, args ):
- multi = cmd == 'telem'
-
socket.sysmessage( 'Select your teleport destination.' )
! socket.attachtarget( "commands.tele.teleport", [multi] )
return True
--- 16,30 ----
def onLoad():
wolfpack.registercommand( "tele", commandTele )
! wolfpack.registercommand( "telem", commandTeleM )
return
+ def commandTeleM( socket, cmd, args ):
+ socket.sysmessage( 'Select your teleport destination.' )
+ socket.attachtarget( "commands.tele.teleport", [True] )
+ return True
+
def commandTele( socket, cmd, args ):
socket.sysmessage( 'Select your teleport destination.' )
! socket.attachtarget( "commands.tele.teleport", [False] )
return True
|