summaryrefslogtreecommitdiff
path: root/src/mods/html/yc_colors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mods/html/yc_colors.cpp')
-rwxr-xr-xsrc/mods/html/yc_colors.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mods/html/yc_colors.cpp b/src/mods/html/yc_colors.cpp
index 6d2c5ab..6b2f11b 100755
--- a/src/mods/html/yc_colors.cpp
+++ b/src/mods/html/yc_colors.cpp
@@ -12,9 +12,9 @@ extern "C" {
container* c = (container*) v_arg;
dynamic_wrap* p_wrap = (dynamic_wrap*) c->elem[0];
conf* p_conf = (conf*) p_wrap->CONF;
- string* p_col1 = &(*((map<string,string>*) c->elem[1]))["col1"];
- string* p_col2 = &(*((map<string,string>*) c->elem[1]))["col2"];
- string* p_flag = &(*((map<string,string>*) c->elem[1]))["flag"];
+ string* p_col1 = &(*((map_string*) c->elem[1]))["col1"];
+ string* p_col2 = &(*((map_string*) c->elem[1]))["col2"];
+ string* p_flag = &(*((map_string*) c->elem[1]))["flag"];
user* p_user = (user*) c->elem[2];
p_col1->erase(0);
@@ -25,11 +25,9 @@ extern "C" {
if ( *p_flag == "submit" )
{
- string* p_msgs = &(*((map<string,string>*) c->elem[1]))["msgs"];
+ string* p_msgs = &(*((map_string*) c->elem[1]))["msgs"];
p_msgs->append( p_conf->get_elem( "chat.msgs.optionschanged" ) );
}
-
- return 0;
}
}