source: trunk/plugins/admin_log.tcl @ 1143

Revision 663, 1.0 KB checked in by james, 6 years ago (diff)

notice when plugins don't register anything
fixed some broken plugins
attempt (but incomplete) to fix dildo plugin
added abilty to filter bmotion log messages
added management plugin for above
improve checking for stuck loops
use local storage dir for abstracts
use more efficient way for abstract dupe checking
added diagnostic stuff to check if some plugins loaded
don't run diagnostics while loading for testing
fix receiving broken interbot output (like "50,something") by stripping out the "50,"
load settings from local dir if available
alert user if we can't load settings

Line 
1# bMotion: admin plugin file for logging
2#
3# $Id: admin_flood.tcl 655 2006-01-01 13:08:32Z james $
4#
5
6###############################################################################
7# This is a bMotion plugin
8# Copyright (C) James Michael Seward 2000-2002
9#
10# This program is covered by the GPL, please refer the to LICENCE file in the
11# distribution; further information can be found in the headers of the scripts
12# in the modules directory.
13###############################################################################
14
15
16### management version
17
18proc bMotion_plugin_management_log { handle { arg "" } } {
19  global bMotion_log_regexp
20
21        if [regexp -nocase {set (.+)} $arg matches log_re] {
22                set bMotion_log_regexp $log_re
23                bMotion_putadmin "bMotion: log filter set to /$log_re/"
24                return 0
25        }
26
27        bMotion_putadmin "bMotion: log filter is currently: /$bMotion_log_regexp/"
28        bMotion_putadmin "bMotion: .bmotion log set <regexp> to set"
29        return 0
30}
31
32bMotion_plugin_add_management "log" "^log" n "bMotion_plugin_management_log"
Note: See TracBrowser for help on using the repository browser.