]>
Commit | Line | Data |
---|---|---|
5fba18da P |
1 | /* Automatically generated by refactor.pl. |
2 | * | |
3 | * | |
4 | * CMDNAME: whoami | |
5 | * CMDLEVEL: QCMD_AUTHED | |
6 | * CMDARGS: 0 | |
7 | * CMDDESC: Displays information about you | |
8 | * CMDFUNC: csu_dowhoami | |
9 | * CMDPROTO: int csu_dowhoami(void *source, int cargc, char **cargv); | |
50cd26d6 | 10 | * CMDHELP: Usage: WHOAMI |
11 | * CMDHELP: Displays various information about your account. | |
5fba18da P |
12 | */ |
13 | ||
14 | #include "../chanserv.h" | |
15 | #include "../../lib/irc_string.h" | |
16 | #include <stdio.h> | |
17 | #include <string.h> | |
18 | ||
524d28f9 CP |
19 | int csu_dowhois(void *, int, char **); |
20 | ||
5fba18da P |
21 | int csu_dowhoami(void *source, int cargc, char **cargv) { |
22 | nick *sender=source; | |
23 | cargv[0] = sender->nick; | |
24 | return csu_dowhois(source, 1, cargv); | |
25 | } |