[project @ 2005-07-04 01:48:38 by unknown_lamer]
[clinton/bobotpp.git] / source / Parser.C
index c950955..1dd60cb 100644 (file)
@@ -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