proc eval_plugins {hook} { foreach plugin [glob -nocomplain /mod/var/mongoose/plugin/*] { if {[file isfile "$plugin/$hook.hook"]} { uplevel source "$plugin/$hook.hook" } } }