| View previous topic :: View next topic |
| Author |
Message |
Spartacus Voice
Joined: 19 Jan 2007 Posts: 5
|
Posted: Fri Jan 19, 2007 12:02 pm Post subject: Bot not chatting |
|
|
Hello,
I have this script:
| Code: | bind dcc - sayit dcc:sayit
proc dcc:sayit {handle, idx, handler} {
putserv "PRIVMSG #channel :$handler"
putmsg #channel "$handler"
} |
#channel is the channel, it's not the real channel, this is just an example
When I say .sayit test, both putserv and putmsg don't work, because when I am in #channel, the bot won't say a thing (and the script won't give me an error either)
Can anybody help me?
Thanks |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Jan 19, 2007 3:00 pm Post subject: |
|
|
Don't use , in the variable-listing... Use a proper tcl list-structure:
| Code: | | proc dcc:sayit {handle idx handler} { |
Also, for such simple tasks as sending texts, etc.. considder using puthelp rather than putserv (same syntax, just uses a low-priority queue rather than the one used for "important" stuffs such as opping, banning, kicking, etc). _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Spartacus Voice
Joined: 19 Jan 2007 Posts: 5
|
Posted: Sat Jan 20, 2007 8:21 am Post subject: |
|
|
Thanks
This is inside my proc:
| Code: | putlog "test1"
putserv "PRIVMSG #channel :just a test"
puthelp "PRIVMSG #channel :just a test"
putlog "test2" |
It shows test1 and test2 in the log, but it doesn't say anything in the channel #channel.. what could be wrong? |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Jan 20, 2007 5:45 pm Post subject: |
|
|
Smells like a server-issue to me (desync'ed channel or such). Could you verify if you get the same behaviour if you make it msg you instead of that channel? _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Spartacus Voice
Joined: 19 Jan 2007 Posts: 5
|
Posted: Sun Jan 21, 2007 3:45 am Post subject: |
|
|
| Code: | putserv "PRIVMSG $handle :just a test"
puthelp "PRIVMSG $handle :just a test" |
These two do work, I get a private message |
|
| Back to top |
|
 |
Spartacus Voice
Joined: 19 Jan 2007 Posts: 5
|
Posted: Sun Jan 21, 2007 9:10 am Post subject: |
|
|
Sorry problem solved
The channel mode was +m
So when the bot wasn't an op, he couldn't talk  |
|
| Back to top |
|
 |
|