// 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
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;
}