repo: segfault
action: blob
revision: 
path_from: access.h
revision_from: refs/heads/master:
path_to: 
revision_to: 
git.thebackupbox.net
segfault
git clone git://git.thebackupbox.net/segfault

blob of:

segfault

/ access.h

blob_plain of this file

refs/heads/master:/access.h

 #ifndef _SEGFAULT_ACCESS_H_
 #define _SEGFAULT_ACCESS_H_

 //include this before. somehow I don't have sanity in irc.h I guess
 //#include 

 char isallowed(char *from,struct user *user,struct user *myuser,char *line) {
  if(strcmp(user->host,"127.0.0.1") && //me
     strcmp(user->host,"localhost") && //me
     strcmp(myuser->nick,user->nick)//let the bot command itself.
     ) {
   return 0;
  }
  return 1;
 }

 #endif