From cbcaeaa9c84401b71bdf6f1f7a4678615c05c662 Mon Sep 17 00:00:00 2001 From: John Reese Date: Thu, 13 Jan 2011 23:01:27 -0500 Subject: [PATCH] Removed debug sections --- notifo.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/notifo.cpp b/notifo.cpp index 3302cb6..f6a13d6 100644 --- a/notifo.cpp +++ b/notifo.cpp @@ -19,9 +19,6 @@ #error This module needs ZNC 0.072 or newer. #endif -#define DEBUG_HOST 0 -#define DEBUG_LOGGING 0 - class CNotifoMod : public CModule { protected: @@ -55,15 +52,9 @@ class CNotifoMod : public CModule app = "ZNC"; crlf = "\r\n"; -#if DEBUG_HOST - notifo_host = "notifo.leetcode.net"; - notifo_url = "/index.php"; -#else + notifo_auth = ""; notifo_host = "api.notifo.com"; notifo_url = "/v1/send_notification"; -#endif - - notifo_auth = ""; user_agent = "ZNC To Notifo"; // Current user @@ -146,13 +137,6 @@ class CNotifoMod : public CModule sock->Write(request); sock->Close(Csock::CLT_AFTERWRITE); AddSocket(sock); - -#if DEBUG_LOGGING - // Log the HTTP request - FILE *fh = fopen("/tmp/notifo.log", "a"); - fputs(request.c_str(), fh); - fclose(fh); -#endif } /**