]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
OPTIMIZED!!! OPTIMIZED!!!!! :-p
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 5 Mar 2006 18:32:36 +0000 (18:32 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 5 Mar 2006 18:32:36 +0000 (18:32 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3471 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_blockcaps.cpp
src/svn-rev.sh

index 79d706e999e62c26e37bb5444f022d65f48205e2..e74d85a0fe3fdabd1ce450afa6ae8c40a4505173 100644 (file)
@@ -42,7 +42,7 @@ public:
        {
                InsertMode(output, "P", 4);
        }
-       
+
        virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text, char status)
        {
                if (target_type == TYPE_CHANNEL)
@@ -51,9 +51,10 @@ public:
 
                        if (c->IsCustomModeSet('P'))
                        {
-                               for(unsigned int i = 0; i < text.length(); i++)
+                               char* n = (char*)text.c_str();
+                               for (char* i = n; *i; i++)
                                {
-                                       if(((text[i] != ' ') && (text[i] != '\t')) && ((text[i] < 'A') || (text[i] > 'Z')))
+                                       if (((*i != ' ') && (*i != '\t')) && ((*i < 'A') || (*i > 'Z')))
                                        {
                                                return 0;
                                        }
index 9404740d4a45c8949000d7ac1d017e9834388f11..12b5c773db44f503809c6774332f64dd2b93508d 100755 (executable)
@@ -1 +1 @@
-echo 3461
+echo 3464