Go to the source code of this file.
Defines | |
| #define | HELPOPS_CHAN "#helpops" |
| Magic channel used for auto-+h by services. | |
| #define | PM_MASK 0x00f000ff |
| Plus-mode mask. | |
| #define | PM_I 0x00000001 |
| +i | |
| #define | PM_K 0x00000002 |
| +k | |
| #define | PM_L 0x00000004 |
| +l | |
| #define | PM_M 0x00000008 |
| +m | |
| #define | PM_N 0x00000010 |
| +n | |
| #define | PM_P 0x00000020 |
| +p | |
| #define | PM_S 0x00000040 |
| +s | |
| #define | PM_T 0x00000080 |
| +t [?] | |
| #define | MM_MASK 0x000fff00 |
| Minus-mode mask */. | |
| #define | MM_I 0x00000100 |
| -i | |
| #define | MM_K 0x00000200 |
| -k | |
| #define | MM_L 0x00000400 |
| -l | |
| #define | MM_M 0x00000800 |
| -m | |
| #define | MM_N 0x00001000 |
| -n | |
| #define | MM_P 0x00002000 |
| -p | |
| #define | MM_S 0x00004000 |
| -s | |
| #define | MM_T 0x00008000 |
| -t [?] | |
| #define | MM_H 0x00010000 |
| #define | MM_C 0x00020000 |
| #define | PM_H 0x00100000 |
| #define | PM_C 0x00200000 |
| #define | COPGUARD 0x00000001 |
| Channel opguard. | |
| #define | CKTOPIC 0x00000002 |
| Keeptopic mode. | |
| #define | CLEAVEOPS 0x00000004 |
| Leaveops. | |
| #define | CQUIET 0x00000008 |
| Quiet Changes. | |
| #define | CCSJOIN 0x00000010 |
| #define | CIDENT 0x00000020 |
| Ops must identify for access. | |
| #define | CHOLD 0x00000040 |
| Held -- will not expire. | |
| #define | CREG 0x00000080 |
| Unknown. | |
| #define | CBANISH 0x00000100 |
| Banished channel. | |
| #define | CPROTOP 0x00000200 |
| Protect sops from deops/such. | |
| #define | CMARK 0x00000400 |
| Channel is marked. | |
| #define | CCLOSE 0x00000800 |
| Channel has been closed. | |
| #define | CFORCEXFER 0x00001000 |
| at the moment for drop command. | |
| #define | CENCRYPT 0x00002000 |
| Channel password encrypted. | |
| #define | OPNONE 0 |
| No chanop access. | |
| #define | OP1 1 |
| Unused. | |
| #define | OP2 2 |
| Unused. | |
| #define | MAOP 3 |
| Mini-AOP. | |
| #define | OP4 4 |
| Unused. | |
| #define | AOP 5 |
| Unused. | |
| #define | OP6 6 |
| AutoOp. | |
| #define | OP7 7 |
| Unused. | |
| #define | MSOP 8 |
| MiniSop (Channel Operator). | |
| #define | OP9 9 |
| Unused. | |
| #define | SOP 10 |
| SuperOp. | |
| #define | OP11 11 |
| Unused. | |
| #define | OP12 12 |
| Unused. | |
| #define | MFOUNDER 13 |
| Mini Founder. | |
| #define | OP14 14 |
| Unused. | |
| #define | FOUNDER 15 |
| Founder. | |
| #define | CHANOP 0x0001 |
| +o - Channel Operator Status | |
| #define | CHANVOICE 0x0002 |
| +v - Voice Status | |
Functions | |
| void | sendToChanServ (UserList *, char **, int) |
| Parse a ChanServ command. | |
| void | addUserToChan (UserList *, char *) |
| Add user to a channel. | |
| void | remUserFromChan (UserList *, char *) |
| Removes a user from channel(s). | |
| void | remFromAllChans (UserList *) |
| void | changeNickOnAllChans (UserList *, UserList *) |
| void | setChanMode (char **, int) |
| Updates services' idea of what a channel's modes are. | |
| void | setChanTopic (char **, int) |
| Tell ChanServ about a topic change. | |
| void | sendToChanOps (ChanList *, char *,...) |
| void | sendToChanOpsAlways (ChanList *, char *,...) |
| void | addChan (ChanList *) |
| Add an online channel to the hash table and linked list. | |
| void | delChan (ChanList *) |
| remove a channel from the channel list, and close it up where necessary | |
| void | addRegChan (RegChanList *) |
| Add a registered channel to the hash table and linked list. | |
| void | delRegChan (RegChanList *) |
| Delete a registered channel. | |
| void | addChanAkick (RegChanList *, cAkickList *) |
| Add an autokick list item to a registered channel's autokick list. | |
| void | delChanAkick (RegChanList *, cAkickList *) |
| void | addChanOp (RegChanList *, cAccessList *) |
| Add an 'access list' item to a registered channel's operator list. | |
| void | delChanOp (RegChanList *, cAccessList *) |
| void | initRegChanData (RegChanList *) |
| Initialize (clean) a registered channel object Init data on a registered channel (clean hashes and pointers). | |
| void | addChanUser (ChanList *, cNickList *) |
| Add an online user to an online channel's user hash and linked list. | |
| void | delChanUser (ChanList *, cNickList *, int) |
| void | addChanBan (ChanList *, cBanList *) |
| Add a ban item to an online channel's banlist. | |
| void | delChanBan (ChanList *, cBanList *) |
| ChanList * | getChanData (char *) |
| Find a channel in the list of online channels. | |
| RegChanList * | getRegChanData (char *) |
| Find a registered channel in the list. | |
| cNickList * | getChanUserData (ChanList *, UserList *) |
| Find a user channel record in an online channel. | |
| cBanList * | getChanBan (ChanList *, char *) |
| Search for a certain ban in a channel (What's this for?). | |
| int | getChanOp (RegChanList *, char *) |
| Get a user's chanop access to a channel. | |
| cAccessList * | getChanOpData (const RegChanList *, const char *) |
| Get the chanop data structure of a nick that might be in the access list. | |
| cAkickList * | getChanAKick (RegChanList *, char *) |
| void | syncChanData (time_t) |
| cAkickList * | getChanAkick (RegChanList *, char *) |
| Search for a specific akick in a channel. | |
| void | freeRegChan (RegChanList *) |
| Frees a registered channel and its data. | |
| void | indexAkickItems (RegChanList *) |
| Re-Index the akick list. | |
| void | indexOpItems (RegChanList *) |
| Re-Index the oplist. | |
| int | isFounder (RegChanList *, UserList *) |
| Determine if a user is the founder of a channel. | |
| void | makeModeLockStr (RegChanList *, char *) |
| Generate mode-lock string. | |
| char * | initModeStr (char *chan) |
| void | banKick (ChanList *, UserList *, char *,...) |
| Kick and ban a user from a channel. | |
| void | rshift_argv (char **args, int x, int numargs) |
Definition in file chanserv.h.
|
|
original meaning (ChanServ stays in channel) is antiquated Definition at line 81 of file chanserv.h. Referenced by addUserToChan(), createGhostChannel(), and deleteGhostChannel(). |
|
|
at the moment for drop command. Password is not authoritative Definition at line 91 of file chanserv.h. Referenced by IpcType::alterObjMessage(), IpcType::authObjMessage(), getMiscChanOp(), isFounder(), and setChanMode(). |
|
|
Leaveops.
Definition at line 79 of file chanserv.h. |
|
|
Add an online channel to the hash table and linked list.
Definition at line 285 of file chanserv.c. References chanhashent::chan, ChanHash, firstChan, getChanData(), getHashKey(), chanlist_struct::hashnext, chanlist_struct::hashprev, chanhashent::lastchan, lastChan, chanlist_struct::name, chanlist_struct::next, and chanlist_struct::previous. Referenced by addUserToChan(). |
|
||||||||||||
|
Add an autokick list item to a registered channel's autokick list.
Definition at line 446 of file chanserv.c. References indexAkickItems(), cakicklist_struct::next, and cakicklist_struct::previous. Referenced by readChanData(). |
|
||||||||||||
|
Add a ban item to an online channel's banlist.
Definition at line 418 of file chanserv.c. References chanlist_struct::firstBan, chanlist_struct::lastBan, cbanlist_struct::next, and cbanlist_struct::previous. Referenced by addUserToChan(), banKick(), and setChanMode(). |
|
||||||||||||
|
Add an 'access list' item to a registered channel's operator list.
Definition at line 476 of file chanserv.c. References RegId::getHashKey(), caccesslist_struct::hashnext, caccesslist_struct::hashprev, indexOpItems(), caccesslist_struct::next, caccesslist_struct::nickId, and caccesslist_struct::previous. Referenced by readChanData(). |
|
||||||||||||
|
Add an online user to an online channel's user hash and linked list.
Definition at line 371 of file chanserv.c. References chanlist_struct::firstUser, getHashKey(), cnicklist_struct::hashnext, cnicklist_struct::hashprev, cnicklisthashent_struct::item, cnicklisthashent_struct::lastitem, chanlist_struct::lastUser, cnicklist_struct::next, _userlist::nick, cnicklist_struct::person, cnicklist_struct::previous, and chanlist_struct::users. Referenced by addUserToChan(), and changeNickOnAllChans(). |
|
|
Add a registered channel to the hash table and linked list.
Definition at line 326 of file chanserv.c. References regchanhashent::chan, firstRegChan, freeRegChan(), getHashKey(), getRegChanData(), regchanhashent::lastchan, lastRegChan, and RegChanHash. Referenced by readChanData(). |
|
||||||||||||
|
||||||||||||||||||||
|
Kick and ban a user from a channel. Kicks a user off the specified channel and sets a ban.
Definition at line 1371 of file chanserv.c. References addChanBan(), cbanlist_struct::ban, ChanServ, DEBUGCHAN, delChanUser(), getChanUserData(), _userlist::host, mask(), chanlist_struct::name, _userlist::nick, oalloc(), sSend(), strncpyzt, and _userlist::user. Referenced by addUserToChan(). |
|
||||||||||||
|
Changes a user's nicknames on all channels that they have joined
Definition at line 2029 of file chanserv.c. References addChanUser(), _userlist::chan, ChanServ, DEBUGCHAN, delChanUser(), getChanUserData(), _userlist::nick, oalloc(), cnicklist_struct::op, cnicklist_struct::person, and sSend(). Referenced by changeNick(). |
|
|
remove a channel from the channel list, and close it up where necessary
Definition at line 519 of file chanserv.c. References chanhashent::chan, ChanHash, firstChan, getHashKey(), chanlist_struct::hashnext, chanlist_struct::hashprev, chanhashent::lastchan, lastChan, chanlist_struct::name, chanlist_struct::next, and chanlist_struct::previous. Referenced by delChanUser(). |
|
||||||||||||
|
Remove channel akick
Definition at line 732 of file chanserv.c. References indexAkickItems(), cakicklist_struct::next, and cakicklist_struct::previous. |
|
||||||||||||
|
Remove a channel ban item
Definition at line 708 of file chanserv.c. References chanlist_struct::firstBan, chanlist_struct::lastBan, cbanlist_struct::next, and cbanlist_struct::previous. Referenced by setChanMode(). |
|
||||||||||||
|
Remove channel operator
Definition at line 759 of file chanserv.c. References RegId::getHashKey(), caccesslist_struct::hashnext, caccesslist_struct::hashprev, indexOpItems(), caccesslist_struct::next, caccesslist_struct::nickId, and caccesslist_struct::previous. |
|
||||||||||||||||
|
Now delete the user from the channel, gee is this easy or what? no. :>
Definition at line 650 of file chanserv.c. References _userlist::chan, delChan(), chanlist_struct::firstUser, getHashKey(), cnicklist_struct::hashnext, cnicklist_struct::hashprev, cnicklisthashent_struct::item, cnicklisthashent_struct::lastitem, chanlist_struct::lastUser, cnicklist_struct::next, _userlist::nick, cnicklist_struct::person, cnicklist_struct::previous, and chanlist_struct::users. Referenced by addUserToChan(), banKick(), changeNickOnAllChans(), remFromAllChans(), and remUserFromChan(). |
|
|
Delete a registered channel. Remove a channel from the registered channel list, and close it up where necessary
Definition at line 569 of file chanserv.c. References regchanhashent::chan, firstRegChan, freeRegChan(), getHashKey(), regchanhashent::lastchan, lastRegChan, RegNickIdMap::nick, and RegChanHash. Referenced by expireChans(). |
|
|
Frees a registered channel and its data.
Definition at line 623 of file chanserv.c. Referenced by addRegChan(), and delRegChan(). |
|
||||||||||||
|
Search for a specific akick in a channel.
Definition at line 1163 of file chanserv.c. References cakicklist_struct::mask, and cakicklist_struct::next. |
|
||||||||||||
|
Search for a certain ban in a channel (What's this for?).
Definition at line 1141 of file chanserv.c. References cbanlist_struct::ban, chanlist_struct::firstBan, and cbanlist_struct::next. Referenced by setChanMode(). |
|
|
Find a channel in the list of online channels.
Definition at line 803 of file chanserv.c. References chanhashent::chan, ChanHash, getHashKey(), chanlist_struct::hashnext, and chanlist_struct::name. Referenced by addChan(), addUserToChan(), expireChans(), gs_roll(), remUserFromChan(), and setChanMode(). |
|
||||||||||||
|
Get a user's chanop access to a channel.
Definition at line 1065 of file chanserv.c. References CIDENT, and getMiscChanOp(). Referenced by addUserToChan(), gs_roll(), remUserFromChan(), setChanMode(), and setChanTopic(). |
|
||||||||||||
|
Get the chanop data structure of a nick that might be in the access list.
Definition at line 1105 of file chanserv.c. References getRegNickData(), caccesslist_struct::hashnext, and caccesslist_struct::nickId. Referenced by do_chanop_add(), and getMiscChanOp(). |
|
||||||||||||
|
Find a user channel record in an online channel.
Definition at line 891 of file chanserv.c. References getHashKey(), cnicklist_struct::hashnext, cnicklisthashent_struct::item, _userlist::nick, cnicklist_struct::person, and chanlist_struct::users. Referenced by banKick(), changeNickOnAllChans(), gs_roll(), remFromAllChans(), remUserFromChan(), and setChanMode(). |
|
|
Find a registered channel in the list.
Definition at line 835 of file chanserv.c. References regchanhashent::chan, getHashKey(), and RegChanHash. Referenced by addRegChan(), addUserToChan(), IpcType::alterObjMessage(), IpcType::authObjMessage(), createGhostChannel(), deleteGhostChannel(), readChanData(), and setChanTopic(). |
|
|
Re-Index the akick list.
Definition at line 1185 of file chanserv.c. References cakicklist_struct::index, and cakicklist_struct::next. Referenced by addChanAkick(), and delChanAkick(). |
|
|
Re-Index the oplist.
Definition at line 1202 of file chanserv.c. References caccesslist_struct::index, and caccesslist_struct::next. Referenced by addChanOp(), and delChanOp(). |
|
|
Initialize (clean) a registered channel object Init data on a registered channel (clean hashes and pointers).
Definition at line 1284 of file chanserv.c. Referenced by readChanData(). |
|
||||||||||||
|
Determine if a user is the founder of a channel. Is this 'nick' person the founder of the channel or no?
Definition at line 1238 of file chanserv.c. References CFORCEXFER, clearChanIdent(), getNickData(), _userlist::idnum, isRecognized(), _userlist::nick, opFlagged(), OVERRIDE, _userlist::reg, and _userlist::timestamp. Referenced by do_chanop_add(), and getMiscChanOp(). |
|
||||||||||||
|
Generate mode-lock string. Fills the modelock buffer with a copy of the locked modes string
Definition at line 1512 of file chanserv.c. References MM_I, MM_K, MM_L, MM_M, MM_N, MM_P, MM_S, MM_T, PM_I, PM_K, PM_L, PM_M, PM_N, PM_P, PM_S, and PM_T. Referenced by addUserToChan(), initModeStr(), and setChanMode(). |
|
|
Removes a user from all channels
Definition at line 1996 of file chanserv.c. References _userlist::chan, ChanServ, DEBUGCHAN, delChanUser(), getChanUserData(), _userlist::nick, and sSend(). Referenced by addUserToChan(), and remUser(). |
|
||||||||||||
|
Removes a user from channel(s). Removes a user from channel(s) in response to a PART message
Definition at line 1918 of file chanserv.c. References _userlist::chan, ChanServ, DEBUGCHAN, delChanUser(), getChanData(), getChanOp(), getChanUserData(), HELPOPS_CHAN, chanlist_struct::name, _userlist::nick, NISHELPOP, NISOPER, _userlist::oflags, chanlist_struct::reg, and sSend(). Referenced by addUserToChan(), and parseLine(). |
|
||||||||||||||||
|
Definition at line 1307 of file chanserv.c. References ChanServ, CQUIET, chanlist_struct::name, chanlist_struct::reg, and sSend(). |
|
||||||||||||||||
|
Definition at line 1335 of file chanserv.c. References ChanServ, chanlist_struct::name, and sSend(). |
|
||||||||||||
|
Updates services' idea of what a channel's modes are.
Definition at line 2065 of file chanserv.c. References addChanBan(), AOP, cbanlist_struct::ban, CFORCEXFER, CHANOP, ChanServ, CHANVOICE, COPGUARD, CPROTOP, DEBUGCHAN, delChanBan(), chanlist_struct::firstUser, getChanBan(), getChanData(), getChanOp(), getChanUserData(), getNickData(), chanlist_struct::lastUser, makeModeLockStr(), MM_K, chanlist_struct::modes, chanlist_struct::name, oalloc(), cnicklist_struct::op, PM_I, PM_K, PM_L, PM_M, PM_N, PM_P, PM_S, PM_T, chanlist_struct::reg, sSend(), and strncpyzt. Referenced by parseLine(). |
|
||||||||||||
|
Tell ChanServ about a topic change. Updates services' idea of what a channel's topic is. Enforces topic locks.
Definition at line 2355 of file chanserv.c. References getChanOp(), getRegChanData(), myname, parse_str(), sSend(), strncpyzt, and TOPIC_MAX. Referenced by parseLine(). |
|
|
Handle timed ChanServ database syncs Definition at line 2472 of file chanserv.c. References firstRegChan, nextCsync, and saveChanData(). Referenced by sshutdown(), and sync_cfg(). |