egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to make command space command

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
squire
Voice


Joined: 22 Sep 2005
Posts: 2

PostPosted: Thu Sep 22, 2005 4:38 am    Post subject: How to make command space command Reply with quote

hi i was wondering how you can make a bind like this.

e.g ce op <nick>

ce = bot shortnick "Cepheus"

so how does one put a space inbetween the commands
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Thu Sep 22, 2005 8:15 am    Post subject: Reply with quote

looking for

Code:
bind pubm - "% ce op *" proc


or

Code:
bind pub - ce procedur
proc procedur {n u h c a} {
  if {[lindex [split $a] 0]=="op"}{
    ...
  }
}


?
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
squire
Voice


Joined: 22 Sep 2005
Posts: 2

PostPosted: Thu Sep 22, 2005 11:26 pm    Post subject: Reply with quote

how about a set statement and have like $cc.
e.g set $cc "ce"

bind pubm - $cc

hmmm i dont know
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Sep 23, 2005 9:10 am    Post subject: Reply with quote

It's
Code:
set cc "ce"

without the $.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber