| Revision 744,
1.3 KB
checked in by james, 5 years ago
(diff) |
|
fix odd clash with another script or eggdrop itself (when using French)
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | ## bMotion plugins loader: simple |
|---|
| 2 | # |
|---|
| 3 | # $Id$ |
|---|
| 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 | set currentlang $bMotionInfo(language) |
|---|
| 16 | set languages [split $bMotionSettings(languages) ","] |
|---|
| 17 | foreach bMotion_language $languages { |
|---|
| 18 | set bMotionInfo(language) $bMotion_language |
|---|
| 19 | bMotion_putloglev 2 * "bMotion: loading simple plugins language = $bMotion_language" |
|---|
| 20 | set files [glob -nocomplain "$bMotionPlugins/$bMotion_language/simple_*.tcl"] |
|---|
| 21 | foreach f $files { |
|---|
| 22 | set count [llength [array names bMotion_plugins_simple]] |
|---|
| 23 | bMotion_putloglev 1 * "bMotion: loading ($bMotion_language) simple plugin file $f" |
|---|
| 24 | set bMotion_noplugins 0 |
|---|
| 25 | catch { |
|---|
| 26 | source $f |
|---|
| 27 | } err |
|---|
| 28 | set newcount [llength [array names bMotion_plugins_simple]] |
|---|
| 29 | if {($bMotion_testing == 0) && ($newcount == $count) && ($bMotion_noplugins == 0)} { |
|---|
| 30 | putlog "bMotion: ALERT! Loading plugins file $f did not add any plugins!" |
|---|
| 31 | putlog "Possible error: $err" |
|---|
| 32 | } |
|---|
| 33 | } |
|---|
| 34 | } |
|---|
| 35 | set bMotionInfo(language) $currentlang |
|---|
| 36 | unset currentlang |
|---|
Note: See
TracBrowser
for help on using the repository browser.