| View previous topic :: View next topic |
| Author |
Message |
sismik Voice
Joined: 18 Nov 2009 Posts: 2
|
Posted: Wed Nov 18, 2009 11:25 am Post subject: strange variable problems |
|
|
I'm new in tcl scripting so don't blame me if it's an easy problem
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 |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
Posted: Wed Nov 18, 2009 12:29 pm Post subject: |
|
|
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 |
|
 |
sismik Voice
Joined: 18 Nov 2009 Posts: 2
|
Posted: Wed Nov 18, 2009 3:18 pm Post subject: |
|
|
lol
shame on me ! |
|
| Back to top |
|
 |
|