summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_blockcaps.cpp7
-rwxr-xr-xsrc/svn-rev.sh2
2 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp
index 79d706e99..e74d85a0f 100644
--- a/src/modules/m_blockcaps.cpp
+++ b/src/modules/m_blockcaps.cpp
@@ -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;
}
diff --git a/src/svn-rev.sh b/src/svn-rev.sh
index 9404740d4..12b5c773d 100755
--- a/src/svn-rev.sh
+++ b/src/svn-rev.sh
@@ -1 +1 @@
-echo 3461
+echo 3464