X-Git-Url: https://git.hcoop.net/clinton/bobotpp.git/blobdiff_plain/7b56471188507f71ab561755e2dbe6125f1c4dd9..ae97d6ecf49738b9e0e253a07db0b07a28fee05e:/source/Parser.C diff --git a/source/Parser.C b/source/Parser.C index c950955..1dd60cb 100644 --- a/source/Parser.C +++ b/source/Parser.C @@ -33,7 +33,7 @@ #include "ShitList.H" typedef void (*fptr) (ServerConnection *, Person *, String); -std::map < std::string, fptr, std::less < std::string > >Parser::functions; +std::map < std::string, fptr, std::less < std::string > > Parser::functions; void Parser::init () @@ -714,7 +714,7 @@ Parser::parsePart (ServerConnection * cnx, Person * from, String rest) StringTokenizer st (rest); String channel = st.next_token (); #ifdef USESCRIPTS - cnx->bot->botInterp->RunHooks (Hook::LEAVE, n + " " + channel, + cnx->bot->botInterp->RunHooks (Hook::PART, n + " " + channel, scm_listify (Utils:: str2scm (n), Utils:: @@ -723,7 +723,7 @@ Parser::parsePart (ServerConnection * cnx, Person * from, String rest) #endif if (n.toLower () == cnx->bot->nickName.toLower ()) { - cnx->bot->logLine (String ("Leaved channel ") + channel + "."); + cnx->bot->logLine (String ("Left channel ") + channel + "."); cnx->bot->channelList->delChannel (channel); } else @@ -1047,7 +1047,8 @@ Parser::parseScriptFunction (ServerConnection * cnx, wd.func = scmFunc; wd.args = args_list; scm_internal_catch (SCM_BOOL_T, - (scm_t_catch_body) lazy_apply_wrapper, (void *) &wd, - (scm_t_catch_handler) empty_handler, 0); + (scm_t_catch_body) Interp::LazyApplyWrapper, + (void *) &wd, + (scm_t_catch_handler) Interp::EmptyHandler, 0); } #endif