summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-16 12:52:00 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-16 12:52:00 +0000
commit5fe79dba4225fc627cc04144b5906ee5455ba382 (patch)
treefaef42a5848a4e0be3ab90fb1b839046635ad1ce
parenta33632a722ff73ae8f8f455c0f34def8b54ed06e (diff)
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
-rw-r--r--src/modules/m_dccallow.cpp2
1 files changed, 1 insertions, 1 deletions
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);