if {($tigger_only_in_channel == 1 && $type == "channel" && [lindex $text 0] != $trigger) || ([lindex $text 0] != $trigger && $tigger_only_in_channel != 1)} {
infoegg_debug "Left operation because no trigger was found, trigger was '$trigger', text was '$text'"
return 0
}code]
Now, when the bot if first started... it issues the debug notice and terminates the function, but after I rehash it works fine... it does NOT terminate the function
I set my nick in my .conf file... surely that it correct?
There is no way to set it before the script loads... the botnick is set when the bot connects to a server, because it is a result of altnick and nick...
The confgi file, and scripts are loaded, before eggdrop even attempts to connect to a server. This is due to the fact, that all user settable settings and information, needs to be collected before connecting to a server.
If your script relies on using the var $botnick, to setup a trigger, then surly the trigger is being setup premiturly.
If eggdrop doesn't known what nickname it is using (IE, primary or altnick), then your script is not cable of knowing what trigger to use.
Sugestions would be to setup the trigger after connected to the server, and it is known what the nickname is.
Look into using the "bind evnt", to trigger a script, designed to setup the trigger based on the current nickname.