From 6fde6b0fe90abde84011202edd40fe46eb06af44 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 21 Nov 2010 16:20:55 +0000 Subject: --- src/mods/commands/yc_col.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/mods/commands/yc_col.cpp') 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.
\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.
\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