2011-07-04 22:41:24 +00:00
|
|
|
|
|
|
|
proc eval_plugins {hook} {
|
2011-07-17 20:52:33 +00:00
|
|
|
foreach plugin [glob -nocomplain /mod/var/mongoose/plugin/*] {
|
2011-07-04 22:41:24 +00:00
|
|
|
if {[file isfile "$plugin/$hook.hook"]} {
|
|
|
|
uplevel source "$plugin/$hook.hook"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|