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 

strange variable problems

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
sismik
Voice


Joined: 18 Nov 2009
Posts: 2

PostPosted: Wed Nov 18, 2009 11:25 am    Post subject: strange variable problems Reply with quote

I'm new in tcl scripting so don't blame me if it's an easy problem Wink
I'm trying to make an irc command working and print some $args in the channel.

look at the script:
Code:
bind pub - !salut pub:salut
 
proc pub:salut {nick uhost hand chan arg} {
   set prout [lindex $arg 1]
   if {$arg != ""} {
      putserv "PRIVMSG $chan salut $nick $prout"
   } else {
      putserv "privmsg $chan chut.. $nick"
   }
}


look at the chan now..
Quote:
[ 16:01:36 ] (@mitsurugi) !salut
[ 16:01:38 ] (t0xic0) chut..
[ 16:02:13 ] (@mitsurugi) !salut couille de loup
[ 16:02:14 ] (t0xic0) salut


I don't understand why variables arent print on irc channels...
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Wed Nov 18, 2009 12:29 pm    Post subject: Reply with quote

sismik, as I said on eggdrop.fr, you forget the ":" leading the sentence you want to say:
Code:
putserv "PRIVMSG $chan :chut... $nick

_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
sismik
Voice


Joined: 18 Nov 2009
Posts: 2

PostPosted: Wed Nov 18, 2009 3:18 pm    Post subject: Reply with quote

lol
shame on me !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help 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