#include "repsheet.h"
#include "common.h"
|
| int | mark (redisContext *context, const char *actor, int type, const char *reason) |
| |
| int | is_ip_marked (redisContext *context, const char *actor, char *reason) |
| |
| int | is_user_marked (redisContext *context, const char *actor, char *reason) |
| |
- Author
- Aaron Bedra
- Date
- 12/09/2014
| int is_ip_marked |
( |
redisContext * |
context, |
|
|
const char * |
actor, |
|
|
char * |
reason |
|
) |
| |
Checks to see if an ip is on the Repsheet
- Parameters
-
| context | the Redis connection |
| actor | the IP address of the actor |
| reason | returns the reason for marking. |
- Returns
- TRUE if yes, FALSE if no, DISCONNECTED if error
| int is_user_marked |
( |
redisContext * |
context, |
|
|
const char * |
actor, |
|
|
char * |
reason |
|
) |
| |
Checks to see if a user is on the Repsheet
- Parameters
-
| context | the Redis connection |
| actor | the user |
| reason | returns the reason for marking. |
- Returns
- TRUE if yes, FALSE if no, DISCONNECTED if error
| int mark |
( |
redisContext * |
context, |
|
|
const char * |
actor, |
|
|
int |
type, |
|
|
const char * |
reason |
|
) |
| |
Adds the actor to the Repsheet
- Parameters
-
| context | the Redis connection |
| actor | the actors user data or ip address |
| type | IP or USER string to describe the reason for marking |
- Returns
- an integer result