This shows that your notice binding has not been triggered..ztian299 wrote:This is what I get in telnet..Code: Select all
Command bindings: TYPE FLGS COMMAND HITS BINDING (TCL) notc -|- search 0 notice:search
Abit embarrased I did'nt notice this until now, but well, here it goes...
Especially this part: ...mask is matched against the entire notice and can contain wildcards....(7) NOTC (stackable)
bind notc <flags> <mask> <proc>
procname <nick> <user@host> <handle> <text> <dest>
Description: dest will be a nickname (the bot's nickname,
obviously) or a channel name. mask is matched against the entire
notice and can contain wildcards. It is considered a breach of
protocol to respond to a /notice on IRC, so this is intended for
internal use (logging, etc.) only. Note that server notices do
| not trigger the NOTC bind. If the proc returns 1, Eggdrop will
| not log the message that triggered this bind.
New Tcl procs should be declared as
proc notcproc {nick uhost hand text {dest ""}} {
global botnick; if {$dest == ""} {set dest $botnick}
...
}
for compatibility.
Module: server
Change the binding into something like this:
Code: Select all
bind notc -|- "search *" notice:search
Set the site variable like this instead:
Code: Select all
set site [lindex [split $text] 1]