#include <eggdrop/eggdrop.h>
Go to the source code of this file.
Functions | |
int | egg_setowner (char **_owner) |
int | egg_isowner (const char *handle) |
Variables | |
static const char | rcsid [] = "$Id: owner.c,v 1.2 2004-10-17 05:14:06 stdarg Exp $" |
static char ** | owner = NULL |
int egg_isowner | ( | const char * | handle | ) |
Definition at line 34 of file owner.c.
References owner.
Referenced by party_perl(), party_python(), and party_tcl().
00035 { 00036 int len; 00037 char *powner; 00038 00039 if (!owner || !*owner) return(0); 00040 00041 len = strlen(handle); 00042 if (!len) return(0); 00043 00044 powner = *owner; 00045 while (*powner) { 00046 while (*powner && !isalnum(*powner)) powner++; 00047 if (!*powner) break; 00048 if (!strncasecmp(powner, handle, len)) { 00049 powner += len; 00050 if (!*powner || !isalnum(*powner)) return(1); 00051 } 00052 while (*powner && isalnum(*powner)) powner++; 00053 } 00054 return(0); 00055 }
int egg_setowner | ( | char ** | _owner | ) |
Definition at line 28 of file owner.c.
References owner.
Referenced by core_config_init().
00029 { 00030 owner = _owner; 00031 return(0); 00032 }
char** owner = NULL [static] |
Definition at line 26 of file owner.c.
Referenced by create_userfile(), egg_isowner(), egg_setowner(), and my_command_handler().
const char rcsid[] = "$Id: owner.c,v 1.2 2004-10-17 05:14:06 stdarg Exp $" [static] |