summaryrefslogtreecommitdiff
path: root/src/mods/commands/yc_col.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mods/commands/yc_col.cpp')
-rw-r--r--src/mods/commands/yc_col.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mods/commands/yc_col.cpp b/src/mods/commands/yc_col.cpp
index 1a04ece..11f93b6 100644
--- a/src/mods/commands/yc_col.cpp
+++ b/src/mods/commands/yc_col.cpp
@@ -1,12 +1,11 @@
/*:*
*: File: ./src/mods/commands/yc_col.cpp
*:
- *: yChat; Homepage: ychat.buetow.org; Version 0.9.0-CURRENT
+ *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT
*:
*: Copyright (C) 2003 Paul C. Buetow, Volker Richter
*: Copyright (C) 2004 Paul C. Buetow
*: Copyright (C) 2005 EXA Digital Solutions GbR
- *: Copyright (C) 2006, 2007 Paul C. Buetow
*:
*: This program is free software; you can redistribute it and/or
*: modify it under the terms of the GNU General Public License
@@ -70,12 +69,12 @@ extern "C"
s_color = tool::to_lower( s_color );
s_color2 = tool::to_lower( s_color2 );
- if ( valid_color(s_color) != 1 )
+ if( valid_color(s_color) != 1 )
{
string *answerstring=new string(s_color + " is not a valid color.<br>\n");
p_user->msg_post( answerstring );
}
- else if ( valid_color(s_color2) != 1 )
+ else if( valid_color(s_color2) != 1 )
{
string *answerstring=new string( s_color2 + " is not a valid color.<br>\n");
p_user->msg_post( answerstring );
@@ -96,13 +95,13 @@ extern "C"
int valid_color( string s_color )
{
- if (s_color.size()!=6)
+ if(s_color.size()!=6)
return 0;
string valid="abcdef0123456789";
- for (int i=0;i<s_color.size();i++)
+ for(int i=0;i<s_color.size();i++)
{
string s_char=s_color.substr(i,1);
- if (valid.find(s_char)==string::npos)
+ if(valid.find(s_char)==string::npos)
return 0;
}