command: use client_[gs]et_permission()

Don't pass a pointer to client->permission to processCommand(), better
let the code in command.c use the new permission getter/setter
functions.
This commit is contained in:
Max Kellermann
2008-09-07 19:17:25 +02:00
parent 2835e37684
commit 1ce5f4d75b
3 changed files with 86 additions and 84 deletions

View File

@@ -29,11 +29,10 @@
struct client;
int processListOfCommands(struct client *client, int *permission,
int processListOfCommands(struct client *client,
int listOK, struct strnode *list);
int processCommand(struct client *client,
int *permission, char *commandString);
int processCommand(struct client *client, char *commandString);
void initCommands(void);