[project @ 2005-01-12 05:36:40 by unknown_lamer]
[clinton/bobotpp.git] / source / DCCParser.C
index b34d857..215ec80 100644 (file)
@@ -1,6 +1,6 @@
 // DCCParser.C  -*- C++ -*-
 // Copyright (c) 1998 Etienne BERNARD
-// Copyright (C) 2002 Clinton Ebadi
+// Copyright (C) 2002,2005 Clinton Ebadi
 
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -32,14 +32,14 @@ DCCParser::parseLine(DCCConnection *cnx, String line)
   Person * from = new DCCPerson(cnx);
 #ifdef USESCRIPTS
   // Call hooks/dcc/chat-message hook functions
-  cnx->bot->botInterp->RunHooks (Hook::DCC_CHAT_MESSAGE, 
+  cnx->get_bot()->botInterp->RunHooks (Hook::DCC_CHAT_MESSAGE, 
                                 from->getAddress () + " " + line,
-                                scm_list_n (Utils::
-                                            string2SCM (from->getAddress ()),
-                                            Utils::string2SCM (line),
+                                scm_list_n (Utils::str2scm (from->getAddress ()),
+                                            Utils::str2scm (line),
                                             SCM_UNDEFINED));
 #endif
-  Parser::parseMessage(cnx->bot->serverConnection, from, cnx->bot->nickName,
+  Parser::parseMessage(cnx->get_bot()->serverConnection, 
+                      from, cnx->get_bot()->nickName,
                        line);
   delete from;
 }