i'm using the following code to try and make it so i can send quick e-mail notes while DCC'ed to my bot, but it dies with the error
wrong # args: should be "proc name args body"
while executing
"proc xs_mailnote {hand idx text} {
global botnet-nick
set toaddr [string range $text 0 [expr ([tcl_wordBreakAfter $text 0] - 1)]]
set subject "$..."
err okay, that makes sense... but looking at various docs on the web, they kept specifying only three arguments for the proc... so what's the difference between $text and $bod?
The "if" is missing a "{", and because of that the rest of your code gets out of sync (in lack of a better word) and the "else" part of the if becomes the 4th argument to "proc"
wrong # args: should be "proc name args body"
while executing
"proc xs_mailnote {hand idx text body} {
global botnet-nick
set toaddr [string range $text 0 [expr ([tcl_wordBreakAfter $text 0] - 1)]]
set subje..."
-- same error, sir_fz
user: i don't see a problem with the if statement...
oof. i see it now. i had to delete and re-write the IF block from scratch... when i did, it worked... then i copied and pasted it into notepad, and copied the original IF statement from my first post, and saw.