This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

spaces between the commands

Old posts that have not been replied to for several years.
Locked
E
EEggy
Op
Posts: 122
Joined: Thu Sep 26, 2002 11:46 pm

spaces between the commands

Post by EEggy »

Hi,

is it possible to fix it:
in a script let say .kickban nick (only one space between .kickban and nick - works ok)
but when
.kickban nick (2 spaces between .kickban and nick - doesn't work)

thanks
EEggy
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Use [string trim $arg ""] or whatever you have there to remove any extra spaces and leave only one betwen them.
Once the game is over, the king and the pawn go back in the same box.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

.kickban is a eggdrop provided command.

From what I understand, this is a limitation of Tcl, and affacts all scripts and internal comands.

Using the double space. allows you to send blank arguments to a command, which is correct IHMO.

This is trivial anyhow. I can't see any reason why you would need to spaces anyhow, and you should be keeping it to 1.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Are you shure it's the dcc command? As far as I can understand from what he said is from his tcl script or something, not from eggdrop channel commands. Anyway, the things you've said are correct.
Once the game is over, the king and the pawn go back in the same box.
Locked