]> granicus.if.org Git - icinga2/commitdiff
Update i2tcl to match latest language changes
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 10 Aug 2016 06:28:42 +0000 (08:28 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 10 Aug 2016 06:28:42 +0000 (08:28 +0200)
refs #12338

contrib/i2eval/i2tcl.cpp
contrib/i2eval/i2tcl.tcl

index cdc712a6c6c6025564571388cf5dd688de7ddf1c..24550454646d36f48e4f6026958b8fb422641a7f 100644 (file)
@@ -39,7 +39,7 @@ static Value i2_call_tcl(const String& command, const String& mtype, const std::
        delete [] objv;
 
        if (code == TCL_ERROR)
-               BOOST_THROW_EXCEPTION(std::runtime_error("An error occured in the TCL script"));
+               BOOST_THROW_EXCEPTION(std::runtime_error("An error occurred in the TCL script"));
 
        Value vresult;
 
index 9706330969254924cb90384efcf8e2a0abae773a..4b653dea7eabdb0b53e193aef853b5852e11576d 100644 (file)
@@ -32,8 +32,7 @@ i2_register_command chanhost getchanhost string
 i2_register_command chanbans chanbans list
 i2_register_command getnick i2_getnick string
 i2_register_command getchan i2_getchan string
-i2_register_command __commit i2_null null
-i2_register_command commit_objects i2_null null
+i2_register_command "Internal.run_with_activation_context" i2_null null
 i2_register_command exit i2_null null
 
 proc i2_null {} {