1 #ifndef INSPIRCD_SQLUTILS
2 #define INSPIRCD_SQLUTILS
6 #define SQLUTILAU "SQLutil AssociateUser"
7 #define SQLUTILAC "SQLutil AssociateChan"
8 #define SQLUTILUA "SQLutil UnAssociate"
9 #define SQLUTILGU "SQLutil GetAssocUser"
10 #define SQLUTILGC "SQLutil GetAssocChan"
11 #define SQLUTILSUCCESS "You shouldn't be reading this (success)"
13 class AssociateUser : public Request
19 AssociateUser(Module* s, Module* d, unsigned long i, userrec* u)
20 : Request(s, d, SQLUTILAU), id(i), user(u)
31 class AssociateChan : public Request
37 AssociateChan(Module* s, Module* d, unsigned long i, chanrec* u)
38 : Request(s, d, SQLUTILAC), id(i), chan(u)
49 class UnAssociate : public Request
54 UnAssociate(Module* s, Module* d, unsigned long i)
55 : Request(s, d, SQLUTILUA), id(i)
66 class GetAssocUser : public Request
72 GetAssocUser(Module* s, Module* d, unsigned long i)
73 : Request(s, d, SQLUTILGU), id(i), user(NULL)
84 class GetAssocChan : public Request
90 GetAssocChan(Module* s, Module* d, unsigned long i)
91 : Request(s, d, SQLUTILGC), id(i), chan(NULL)