// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+// 02110-1301, USA.
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "DCCParser.H"
+
+#include "DCCConnection.H"
#include "DCCPerson.H"
#include "Parser.H"
-#include "BotInterp.H"
#include "Utils.H"
+#ifdef USESCRIPTS
+#include "BotInterp.H"
+#endif
+
void
DCCParser::parseLine(DCCConnection *cnx, String line)
{
// Call hooks/dcc/chat-message hook functions
cnx->get_bot()->botInterp->RunHooks (Hook::DCC_CHAT_MESSAGE,
from->getAddress () + " " + line,
- scm_list_n (Utils::str2scm (from->getAddress ()),
- Utils::str2scm (line),
- SCM_UNDEFINED));
+ scm_list_n
+ (Utils::str2scm (from->getAddress ()),
+ Utils::str2scm (line),
+ SCM_UNDEFINED));
#endif
Parser::parseMessage(cnx->get_bot()->serverConnection,
from, cnx->get_bot()->nickName,