From 74f7c865f5fd0424c49bed5af0204f194effc37e Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sun, 31 Aug 2014 12:51:42 +0200 Subject: m_blockamsg Remove redundant check --- src/modules/m_blockamsg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_blockamsg.cpp') diff --git a/src/modules/m_blockamsg.cpp b/src/modules/m_blockamsg.cpp index 13533808a..e345286b2 100644 --- a/src/modules/m_blockamsg.cpp +++ b/src/modules/m_blockamsg.cpp @@ -95,7 +95,7 @@ class ModuleBlockAmsg : public Module targets = 1; for(const char* c = parameters[0].c_str(); *c; c++) - if((*c == ',') && *(c+1) && (*(c+1) == '#')) + if ((*c == ',') && (*(c+1) == '#')) targets++; /* targets should now contain the number of channel targets the msg/notice was pointed at. -- cgit v1.2.3