lib/eggdrop/owner.c File Reference

#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


Function Documentation

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 }


Variable Documentation

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]

Definition at line 21 of file owner.c.


Generated on Sun Nov 30 18:43:34 2008 for eggdrop1.9 by  doxygen 1.5.6