Well, first off.. Your mod-path setting is incorrect, usually the default "modules" works just fine (as long as you remember the "make install" step during compile-time). On the other hand, if this is a rpm'd eggdrop (which it does look like to me), this would have to point to the directory where your package manager installed the eggdrop modules instead.
Next, tcl treats characters such as [] in a special manner; they're known as command substitutions. Simply put, it executes whatever is inside as a new tcl command, and replaces the brackets (and content) with whatever is returned by this command.
There are two ways of preventing this; either escape all brackets using \, or enclose the string with braces {} instead of double-quotes; a few examples:
Code: Select all
#Bad, won't work:
channel add "#test[die]" ...
#Good, will work:
channel add "#test\[die\]" ...
#Also good, will work:
channel add {#test[die]} ...
Further, you cannot define more than one channel per channel command:
Code: Select all
#Bad, won't work:
channel add "#test1" "#test2" {
...
}
#Good, will work:
channel add "#test1" {
...
}
channel add "#test2" {
...
}