summaryrefslogtreecommitdiff
path: root/src/mods/commands/yc_template.cpp
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:46 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:46 +0200
commiteab0b1c2d649fa16707b24cd2a91f195078167b0 (patch)
treee960f351655305e3911089ff75677caef364a280 /src/mods/commands/yc_template.cpp
parent07706f56cd421bf8b101a5c0fe44674d36e161a0 (diff)
tagging ychat-0.7.2ychat-0.7.2
Diffstat (limited to 'src/mods/commands/yc_template.cpp')
-rwxr-xr-xsrc/mods/commands/yc_template.cpp25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/mods/commands/yc_template.cpp b/src/mods/commands/yc_template.cpp
index 9273fff..e0aa009 100755
--- a/src/mods/commands/yc_template.cpp
+++ b/src/mods/commands/yc_template.cpp
@@ -7,19 +7,18 @@
using namespace std;
-extern "C"
-{
- int extern_function(void *v_arg)
- {
- container *c=(container *)v_arg;
+extern "C" {
+ int extern_function(void *v_arg)
+ {
+ container *c=(container *)v_arg;
+
+ user *p_user = (user*)c->elem[1]; // the corresponding user
+ vector<string> *params=(vector<string>*)c->elem[2]; // param array
+
+ string *quitstring=new string("Text to send<br>");
+ p_user->msg_post( quitstring );
- user *p_user = (user*)c->elem[1]; // the corresponding user
- vector<string> *params=(vector<string>*)c->elem[2]; // param array
-
- string *quitstring=new string("Text to send<br>");
- p_user->msg_post( quitstring );
-
- return 0;
- }
+ return 0;
+ }
}