From 5fe79dba4225fc627cc04144b5906ee5455ba382 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 16 Oct 2006 12:52:00 +0000 Subject: This compiles again now -- would have been very unstable in its old state (oopsy) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5474 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_dccallow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 59aeb7725..a94c1ad41 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -366,7 +366,7 @@ virtual int OnUserPreNotice(userrec* user, void* dest, int target_type, std::str u->WriteServ("NOTICE %s :If you trust %s and were expecting this, you can type /DCCALLOW HELP for information on the DCCALLOW system.", u->nick, user->nick); } } - else if ((type == "CHAT") && (strcmp(blockchat, "yes") == 0)) + else if ((type == "CHAT") && (blockchat)) { user->WriteServ("NOTICE %s :The user %s is not accepting DCC CHAT requests from you.", user->nick, u->nick); u->WriteServ("NOTICE %s :%s (%s@%s) attempted to initiate a DCC CHAT session, which was blocked.", u->nick, user->nick, user->ident, user->dhost); -- cgit v1.2.3