#include "services.h"
#include "chanserv.h"
#include "nickserv.h"
#include "macro.h"
#include "queue.h"
#include "hash.h"
#include "db.h"
#include "log.h"
#include "email.h"
#include "interp.h"
#include "chantrig.h"
#include "hash/md5pw.h"
Go to the source code of this file.
Classes | |
struct | _cs_settbl__ |
This is a datatype used for creating the /ChanServ SET table. More... | |
Defines | |
#define | ARGLEN 150 |
#define | DEFIFZERO(value, default) ((value) ? (value) : (default)) |
#define | process_op_item(x) |
Process an access check on a chanop item. | |
#define | CSO(q) (((size_t) &((RegChanList *)0)->q)) |
/ChanServ Set related macro This is a hack to allow for generalized ChanServ set types such as cs_set_bool and cs_set_string. | |
#define | DMOD_KEY(nm, va) else if (strcmp(args[i], nm) == 0) {tar=(va); i++; break;} |
Typedefs | |
typedef _cs_settbl__ | cs_settbl_t |
This is a datatype used for creating the /ChanServ SET table. | |
Functions | |
const char * | GetAuthChKey (const char *, const char *, time_t, u_int32_t) |
const char * | PrintPass (u_char pI[], char enc) |
Print a password appropriately encoded according to its encryption type (if applicable). | |
char * | urlEncode (const char *) |
void | createGhostChannel (char *) |
Have ChanServ join a channel. | |
void | deleteGhostChannel (char *) |
Remove ChanServ from an enforced channel to end the ghost period. | |
void | deleteTimedGhostChannel (char *) |
Timed ending of a Channel enforcement period. | |
cmd_return | do_chanop (services_cmd_id, UserList *, RegChanList *chan, const char *nick, int level) |
Handle one of the services channel oplist editing commands such as '/ChanServ AOP'. | |
cmd_return | do_chanop_del (UserList *isfrom, RegChanList *chan, const char *cTargetNick, int tarLevel) |
Handle one of the services channel oplist DEL commands such as '/ChanServ AOP DEL'. | |
cmd_return | do_chanop_add (UserList *isfrom, RegChanList *chan, const char *cTargetNick, int tarLevel) |
Handle one of the services channel oplist ADD commands such as '/ChanServ AOP ADD'. | |
cmd_return | do_chanop_list (UserList *isfrom, RegChanList *chan, const char *cTargetNick, int tarLevel) |
Handle one of the services channel oplist LIST commands such as '/ChanServ AOP LIST'. | |
cmd_return | cs_set_passwd (cs_settbl_t *, UserList *, RegChanList *, char **, int) |
cmd_return | cs_set_memolvl (cs_settbl_t *, UserList *, RegChanList *, char **, int) |
cmd_return | cs_set_founder (cs_settbl_t *, UserList *, RegChanList *, char **, int) |
cmd_return | cs_set_string (cs_settbl_t *, UserList *, RegChanList *, char **, int) |
cmd_return | cs_set_fixed (cs_settbl_t *, UserList *, RegChanList *, char **, int) |
Generic set for a string of fixed length. | |
cmd_return | cs_set_bool (cs_settbl_t *, UserList *, RegChanList *, char **, int) |
Generic set for an on|off flag setting. | |
cmd_return | cs_set_mlock (cs_settbl_t *, UserList *, RegChanList *, char **, int) |
cmd_return | cs_set_restrict (cs_settbl_t *, UserList *, RegChanList *, char **, int) |
cmd_return | cs_set_topiclock (cs_settbl_t *, UserList *, RegChanList *, char **, int) |
cmd_return | cs_set_encrypt (cs_settbl_t *, UserList *, RegChanList *, char **, int) |
int | BadPwChan (UserList *nick, RegChanList *target) |
Handle a bad password attempt. | |
void | GoodPwChan (UserList *nick, RegChanList *target) |
A user successfully identified to a channel, send them badpw information since their last `login'. | |
void | addChan (ChanList *newchan) |
Add an online channel to the hash table and linked list. | |
void | addRegChan (RegChanList *newchan) |
Add a registered channel to the hash table and linked list. | |
void | addChanUser (ChanList *channel, cNickList *newnick) |
Add an online user to an online channel's user hash and linked list. | |
void | addChanBan (ChanList *channel, cBanList *item) |
Add a ban item to an online channel's banlist. | |
void | addChanAkick (RegChanList *channel, cAkickList *item) |
Add an autokick list item to a registered channel's autokick list. | |
void | addChanOp (RegChanList *channel, cAccessList *item) |
Add an 'access list' item to a registered channel's operator list. | |
void | delChan (ChanList *killme) |
remove a channel from the channel list, and close it up where necessary | |
void | delRegChan (RegChanList *killme) |
Delete a registered channel. | |
void | freeRegChan (RegChanList *killme) |
Frees a registered channel and its data. | |
void | delChanUser (ChanList *channel, cNickList *nick, int doCleanChan) |
void | delChanBan (ChanList *channel, cBanList *item) |
void | delChanAkick (RegChanList *channel, cAkickList *item) |
void | delChanOp (RegChanList *channel, cAccessList *item) |
ChanList * | getChanData (char *name) |
Find a channel in the list of online channels. | |
RegChanList * | getRegChanData (char *name) |
Find a registered channel in the list. | |
char | ChanGetEnc (RegChanList *rcl) |
Get the encryption status of a registered channel object. | |
char | ChanGetIdent (RegChanList *rcl) |
Get the IDENT flag status of a registered channel object. | |
cNickList * | getChanUserData (ChanList *chan, UserList *data) |
Find a user channel record in an online channel. | |
int | getMiscChanOp (RegChanList *chan, char *nick, int id, char *checkAccessNick) |
Get the channel access level. | |
int | getChanOp (RegChanList *chan, char *nick) |
Get a user's chanop access to a channel. | |
int | getChanOpId (RegChanList *chan, char *nick) |
Get a user's chanop access to a channel requiring that they be identified to have any access. | |
cAccessList * | getChanOpData (const RegChanList *chan, const char *nick) |
Get the chanop data structure of a nick that might be in the access list. | |
cBanList * | getChanBan (ChanList *chan, char *ban) |
Search for a certain ban in a channel (What's this for?). | |
cAkickList * | getChanAkick (RegChanList *chan, char *akick) |
Search for a specific akick in a channel. | |
void | indexAkickItems (RegChanList *chan) |
Re-Index the akick list. | |
void | indexOpItems (RegChanList *chan) |
Re-Index the oplist. | |
void | clearChanIdent (RegChanList *chan) |
Clear channel identification structures (un-identify). | |
int | isFounder (RegChanList *chan, UserList *nick) |
Determine if a user is the founder of a channel. | |
int | is_sn_chan (char *ch_name) |
Reports whether/not this an official SorceryNet channel like #sorcery. | |
void | initRegChanData (RegChanList *chan) |
Initialize (clean) a registered channel object Init data on a registered channel (clean hashes and pointers). | |
void | sendToChanOps (ChanList *chan, char *format,...) |
void | sendToChanOpsAlways (ChanList *chan, char *format,...) |
void | banKick (ChanList *chan, UserList *nick, char *format,...) |
Kick and ban a user from a channel. | |
char * | initModeStr (ChanList *chan) |
Generate initial mode string. | |
void | makeModeLockStr (RegChanList *chan, char *modelock) |
Generate mode-lock string. | |
void | addUserToChan (UserList *nick, char *channel) |
Add user to a channel. | |
void | remUserFromChan (UserList *nick, char *channel) |
Removes a user from channel(s). | |
void | remFromAllChans (UserList *nick) |
void | changeNickOnAllChans (UserList *oldnick, UserList *newnick) |
void | setChanMode (char **args, int numargs) |
Updates services' idea of what a channel's modes are. | |
void | setChanTopic (char **args, int numargs) |
Tell ChanServ about a topic change. | |
const char * | opLevelName (int level, int x_case) |
Print the name of an op level. | |
int | opNameLevel (const char *name) |
Converts a level name into a number. | |
void | syncChanData (time_t next) |
int | ValidChannelName (const char *nmtoken) |
void | expireChans (char *arg) |
void | sendToChanServ (UserList *nick, char **args, int numargs) |
Parse a ChanServ command. | |
CCMD (cs_help) | |
CCMD (cs_chanop) | |
CCMD (cs_akick) | |
CCMD (cs_mdeop) | |
CCMD (cs_mkick) | |
void | sendChannelInfo (UserList *nick, RegChanList *chan, int fTerse) |
Print results of a /Chanserv Info to a user. | |
CCMD (cs_info) | |
CCMD (cs_access) | |
Get access level [?of target] on channel. | |
CCMD (cs_register) | |
CCMD (cs_identify) | |
CCMD (cs_addop) | |
int | cleanChopList (RegChanList *chan) |
Clean out bad chanops. | |
CCMD (cs_clean) | |
CCMD (cs_addak) | |
CCMD (cs_wipeak) | |
CCMD (cs_wipeop) | |
CCMD (cs_delak) | |
CCMD (cs_listop) | |
CCMD (cs_listak) | |
CCMD (cs_drop) | |
CCMD (cs_op) | |
CCMD (cs_deop) | |
CCMD (cs_banish) | |
CCMD (cs_close) | |
CCMD (cs_hold) | |
Hold/unhold a channel from expiration. | |
CCMD (cs_mark) | |
Mark/unmark a channel (ServOp command). | |
CCMD (cs_clist) | |
CCMD (cs_whois) | |
CCMD (cs_restrict) | |
CCMD (cs_topiclock) | |
CCMD (cs_modelock) | |
CCMD (cs_set) | |
CCMD (cs_save) | |
CCMD (cs_getpass) | |
CCMD (cs_getrealpass) | |
CCMD (cs_invite) | |
CCMD (cs_unban) | |
CCMD (cs_delete) | |
CCMD (cs_log) | |
cmd_return | cs_setrealpass (UserList *nick, char **args, int numargs) |
CCMD (cs_trigger) | |
CCMD (cs_dmod) | |
Variables | |
const int | TOPIC_MAX = 350 |
Maximum length of a topic. | |
ChanList * | firstChan = NULL |
First listed online channel. | |
ChanList * | lastChan = NULL |
Last listed online channel. | |
RegChanList * | firstRegChan = NULL |
First listed registered channel. | |
RegChanList * | lastRegChan = NULL |
Last listed registered channel. | |
interp::service_cmd_t | chanserv_commands [] |
ChanServ command parse table. | |
struct { | |
int lev | |
const char * v [3] | |
} | oplev_table [] |
Provides the conversions between chanop levels and various names. |
Functions related to the manipulation of registered channel data, channel op list handling, and all channel management and internal state data services deals with.
Max Byrd
Greg Poma
James Hess
Definition in file chanserv.c.
|
Value: { \ if (x) { \ if (checkAccessNick) \ { \ strncpyzt(checkAccessNick, tmpNickName, NICKLEN); \ } \ if (highest < (x)->uflags) { \ highest = (x)->uflags; \ } \ } \ } XXX: Macro abuse This macro is used by getMiscChanop to process access items in a channel. Definition at line 919 of file chanserv.c. Referenced by getMiscChanOp(). |
|
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, lastChan, chanhashent::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(). |
|
|
Handle a bad password attempt.
Definition at line 228 of file chanserv.c. References addFlood(), _userlist::badpws, ChanServ, _userlist::nick, and sSend(). |
|
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(). |
|
cmd_cs_trigger Command Syntax: a. TRIGGER Show system defaults b. TRIGGER LIST List triggers c. TRIGGER Show trigger levels d. TRIGGER DEFAULTS Remove all triggered data e. TRIGGER MaxAkicks Change max number akicks f. TRIGGER MaxOps Change max number chanops Definition at line 6955 of file chanserv.c. |
|
Definition at line 6152 of file chanserv.c. |
|
Mark/unmark a channel (ServOp command).
Definition at line 5010 of file chanserv.c. |
|
Hold/unhold a channel from expiration.
Definition at line 4930 of file chanserv.c. |
|
Identify for founder access Improvements, support for identity using a nick other than listed in /cs info (remote id.) -Mysid XXX should check nick->caccess maybe? Definition at line 3480 of file chanserv.c. |
|
Get access level [?of target] on channel. Improved to always indicate nick used to get access unless not the same as the present nick. -Mysid Definition at line 3251 of file chanserv.c. |
|
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(). |
|
Get the encryption status of a registered channel object.
Definition at line 861 of file chanserv.c. References CENCRYPT. Referenced by IpcType::alterObjMessage(), and IpcType::authObjMessage(). |
|
Get the IDENT flag status of a registered channel object.
Definition at line 873 of file chanserv.c. References CIDENT. |
|
Clear channel identification structures (un-identify).
Definition at line 1218 of file chanserv.c. Referenced by isFounder(). |
|
Have ChanServ join a channel.
Definition at line 1453 of file chanserv.c. References CCSJOIN, ChanServ, getRegChanData(), and sSend(). Referenced by addUserToChan(). |
|
Encrypt/decrypt a channel password Definition at line 5756 of file chanserv.c. |
|
Change channel founder SET FOUNDER [User must be identified to channel first] Definition at line 6018 of file chanserv.c. |
|
Set for channel memo level Definition at line 6080 of file chanserv.c. References is_sn_chan(), OGRP, and opFlagged(). |
|
Set a channel mode lock Definition at line 5813 of file chanserv.c. |
|
Change a channel password
Definition at line 5962 of file chanserv.c. |
|
Set for a channel restrict level Definition at line 5631 of file chanserv.c. |
|
Generic: /CS SET <string|*> Definition at line 5478 of file chanserv.c. |
|
Set for channel topiclock level Definition at line 5693 of file chanserv.c. References RET_OK_DB. |
|
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, lastChan, chanhashent::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(). |
|
Remove ChanServ from an enforced channel to end the ghost period.
Definition at line 1473 of file chanserv.c. References CCSJOIN, ChanServ, getRegChanData(), and sSend(). Referenced by deleteTimedGhostChannel(). |
|
Timed ending of a Channel enforcement period.
Definition at line 1488 of file chanserv.c. References deleteGhostChannel(), and deleteTimedGhostChannel(). Referenced by addUserToChan(), and deleteTimedGhostChannel(). |
|
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(). |
|
Handle one of the services channel oplist editing commands such as '/ChanServ AOP'.
Definition at line 3640 of file chanserv.c. |
|
Handle one of the services channel oplist ADD commands such as '/ChanServ AOP ADD'.
Definition at line 3708 of file chanserv.c. References ChanServ, FOUNDER, getChanOpData(), isFounder(), MAOP, MSOP, _userlist::nick, ODMOD, opFlagged(), opLevelName(), OVERRIDE, RET_EFAULT, RET_FAIL, RET_NOPERM, RET_OK_DB, SOP, sSend(), and caccesslist_struct::uflags. |
|
Handle one of the services channel oplist DEL commands such as '/ChanServ AOP DEL'.
Definition at line 3866 of file chanserv.c. References RET_NOTARGET. |
|
Handle one of the services channel oplist LIST commands such as '/ChanServ AOP LIST'.
Definition at line 3961 of file chanserv.c. References ChanServ, mask_structure::host, caccesslist_struct::index, match(), mask_structure::nick, caccesslist_struct::nickId, regnick_ugethost(), sSend(), caccesslist_struct::uflags, and mask_structure::user. |
|
Channel Expirations Definition at line 2503 of file chanserv.c. References CBANISH, ChanServ, CHOLD, delRegChan(), expireChans(), firstRegChan, getChanData(), SLogfile::log(), mostchans, chanlist_struct::reg, saveChanData(), sSend(), and timer(). Referenced by expireChans(), and parseLine(). |
|
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(). |
|
Get a user's chanop access to a channel requiring that they be identified to have any access.
Definition at line 1085 of file chanserv.c. References 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(). |
|
Get the channel access level.
Definition at line 950 of file chanserv.c. References CBANISH, CCLOSE, CFORCEXFER, checkAccess(), FOUNDER, genHostMask(), getChanOpData(), RegId::getNick(), getNickData(), getRegNickData(), _userlist::host, _userlist::id, isFounder(), isIdentified(), isOper(), isRecognized(), cakicklist_struct::mask, match(), cakicklist_struct::next, _userlist::nick, _identifydata::nick, caccesslist_struct::nickId, opFlagged(), OVERRIDE, process_op_item, _userlist::reg, strncpyzt, caccesslist_struct::uflags, and _userlist::user. Referenced by getChanOp(), and getChanOpId(). |
|
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(). |
|
Generate initial mode string. Returns a pointer to a static buffer holding a copy of the the initial mode string necessary to restore channel modes.
Definition at line 1411 of file chanserv.c. References initModeStr(), makeModeLockStr(), MM_K, PM_K, PM_L, and chanlist_struct::reg. Referenced by addUserToChan(), and initModeStr(). |
|
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(). |
|
Reports whether/not this an official SorceryNet channel like #sorcery.
Definition at line 1266 of file chanserv.c. References LOGCHAN. Referenced by cs_set_memolvl(). |
|
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(). |
|
Print the name of an op level. Displays the name of a chanop level
Definition at line 2419 of file chanserv.c. References FOUNDER, and oplev_table. Referenced by do_chanop_add(). |
|
Converts a level name into a number. A number is generated from a level name
Definition at line 2439 of file chanserv.c. References FOUNDER, and oplev_table. |
|
Print a password appropriately encoded according to its encryption type (if applicable).
|
|
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(). |
|
Print results of a /Chanserv Info to a user. ( Revamped to use tables -Mysid ) Definition at line 2968 of file chanserv.c. References CQUIET. |
|
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(). |