Paul Klumpp 12 vuotta sitten
vanhempi
commit
6a32f5247d
1 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. 5 4
      cims_admin.tcl

+ 5 - 4
cims_admin.tcl

@@ -82,7 +82,7 @@ proc ::cims::admin::check_addchannel {nick channel} {
 	}
 }
 
-proc ::cims::admin::rehash {nick mask hand chan text} {
+proc ::cims::admin::rehashme {nick mask hand chan text} {
   variable admin_channels 
   global botnet-nick
 	
@@ -92,7 +92,7 @@ proc ::cims::admin::rehash {nick mask hand chan text} {
 	if {$allowed == 0} {
 		return 0
 	}
-	
+	putlog "test"
 	# rehash the bot... be sure the scripts are coded correctly!! or the bot will DIE!
 	rehash
 	::putils::put_nick ${nick} "Mnet! \"${proper_botnick}\" has rehashed and thus reloaded the mnet.tcl"
@@ -360,7 +360,8 @@ proc ::cims::admin::main {nick mask hand chan text} {
 
 	if {${cmd} == "rehash"} {
 		# rehash
-		::cims::admin::rehash $nick $mask $hand $chan $text
+		::cims::admin::rehashme $nick $mask $hand $chan $text
+
 		return 0
 	}
 	
@@ -407,7 +408,7 @@ proc ::cims::admin::bindings {} {
   bind pub - !mnet_${proper_botnick} ::cims::admin::main
   bind pub - !mnet_reload            ::cims::admin::reload
   bind pub - !mnet_channels          ::cims::admin::channelinfo
-  bind pub - !mnet_rehash            ::cims::admin::rehash
+  bind pub - !mnet_rehash            ::cims::admin::rehashme
   bind pub - !mnet_version           ::cims::admin::version
   bind pub - !mnet_trylink           ::cims::admin::trylink
   bind pub - !mnet_savesettings      ::cims::admin::savesettings