diff options
Diffstat (limited to 'src/mods/commands/yc_q.cpp')
| -rwxr-xr-x | src/mods/commands/yc_q.cpp | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/mods/commands/yc_q.cpp b/src/mods/commands/yc_q.cpp index 3c614f7..1df6156 100755 --- a/src/mods/commands/yc_q.cpp +++ b/src/mods/commands/yc_q.cpp @@ -8,20 +8,23 @@ using namespace std; -extern "C" { - int extern_function(void *v_arg) - { - container* c = (container*) v_arg; - user* p_user = (user*)c->elem[1]; +extern "C" +{ + int extern_function(void *v_arg) + { + container* c = (container*) v_arg; + user* p_user = (user*)c->elem[1]; - conf* p_conf = (conf*) ((dynamic_wrap*)c->elem[3])->CONF; + conf* p_conf = (conf*) ((dynamic_wrap*)c->elem[3])->CONF; - string s_quit = "<script confuage=JavaScript>top.location.href='/" - + p_conf->get_elem("httpd.startsite") - + "';</script>"; + string s_quit = "<script confuage=JavaScript>top.location.href='/" + + p_conf->get_elem("httpd.startsite") + + "';</script>"; - p_user->msg_post( &s_quit ); - p_user->set_online(false); - } + p_user->msg_post( &s_quit ); + p_user->set_online(false); + + return 0; + } } |
