git.ucc.asn.au
/
tpg
/
opendispense2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Commenting in server.c
[tpg/opendispense2.git]
/
src
/
server
/
server.c
diff --git
a/src/server/server.c
b/src/server/server.c
index
2bcd8d3
..
e392f73
100644
(file)
--- a/
src/server/server.c
+++ b/
src/server/server.c
@@
-811,6
+811,8
@@
tItem *_GetItemFromString(char *String)
/**
* \brief Fetch information on a specific item
/**
* \brief Fetch information on a specific item
+ *
+ * Usage: ITEMINFO <item ID>
*/
void Server_Cmd_ITEMINFO(tClient *Client, char *Args)
{
*/
void Server_Cmd_ITEMINFO(tClient *Client, char *Args)
{
@@
-831,6
+833,11
@@
void Server_Cmd_ITEMINFO(tClient *Client, char *Args)
Server_int_SendItem( Client, item );
}
Server_int_SendItem( Client, item );
}
+/**
+ * \brief Dispense an item
+ *
+ * Usage: DISPENSE <Item ID>
+ */
void Server_Cmd_DISPENSE(tClient *Client, char *Args)
{
tItem *item;
void Server_Cmd_DISPENSE(tClient *Client, char *Args)
{
tItem *item;
@@
-872,6
+879,11
@@
void Server_Cmd_DISPENSE(tClient *Client, char *Args)
}
}
}
}
+/**
+ * \brief Refund an item to a user
+ *
+ * Usage: REFUND <user> <item id> [<price>]
+ */
void Server_Cmd_REFUND(tClient *Client, char *Args)
{
tItem *item;
void Server_Cmd_REFUND(tClient *Client, char *Args)
{
tItem *item;
@@
-920,6
+932,11
@@
void Server_Cmd_REFUND(tClient *Client, char *Args)
}
}
}
}
+/**
+ * \brief Transfer money to another account
+ *
+ * Usage: GIVE <dest> <ammount> <reason...>
+ */
void Server_Cmd_GIVE(tClient *Client, char *Args)
{
char *recipient, *ammount, *reason;
void Server_Cmd_GIVE(tClient *Client, char *Args)
{
char *recipient, *ammount, *reason;
UCC
git Repository :: git.ucc.asn.au