summaryrefslogtreecommitdiff
path: root/access.h
diff options
context:
space:
mode:
authorepoch <epoch@hack.thebackupbox.net>2019-05-14 06:10:48 +0000
committerepoch <epoch@hack.thebackupbox.net>2019-05-14 06:10:48 +0000
commit4d08ffab7990054aa5229c45772e0737aeea6f0b (patch)
treee9fb9f9ecf2ae1e815349e84c24d6e2fdfa85c49 /access.h
parent943b7bd71f7f47a0ad3b8c9867dee4f8a9c96a81 (diff)
downloadsegfault-4d08ffab7990054aa5229c45772e0737aeea6f0b.tar.gz
segfault-4d08ffab7990054aa5229c45772e0737aeea6f0b.zip
added access.h so that function that's been in segfault to filter out unwanted commands can actually be seen by git.
Diffstat (limited to 'access.h')
-rw-r--r--access.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/access.h b/access.h
new file mode 100644
index 0000000..9b3dcbf
--- /dev/null
+++ b/access.h
@@ -0,0 +1,17 @@
+#ifndef _SEGFAULT_ACCESS_H_
+#define _SEGFAULT_ACCESS_H_
+
+//include this before. somehow I don't have sanity in irc.h I guess
+//#include <irc.h>
+
+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