aboutsummaryrefslogtreecommitdiffstats
path: root/modules/m_knock.c
Commit message (Expand)AuthorAgeFilesLines
* Replace most checks for +o with oper:general•••I'm preparing to PR a succession of privs changes with the ultimate goal of severely limiting the scope of the binary oper/user dichotomy and move conceptually distinct oper functions into their own privs. Accomplishing this is a non-trivial task, and can wait, but it's inconvenient now to have such functions enabled by the same mechanism that grants any privs at all--so I'm moving all of them to a transitional priv with the intention of eroding that later. Gravatar Ed Kellett2020-08-041-1/+2
* Centralise banmask matching logicGravatar Ed Kellett2020-04-121-2/+2
* ircd: send tags on every message•••Simplify linebuf by introducing fsnprint to manage a list of printfs. Add a msgbuf unparse cache for send functions that loop. Gravatar Simon Arlott2017-08-061-1/+1
* cppcheck: fix various warnings/errors•••[ircd/match.c:316]: (error) Shifting a negative value is undefined behaviour [librb/src/patricia.c:55]: (error) Shifting a negative value is undefined behaviour [modules/m_alias.c:64]: (portability) '(void*)message' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [modules/m_time.c:111]: (warning) %u in format string (no. 9) requires 'unsigned int' but the argument type is 'signed int'. [modules/m_time.c:111]: (warning) %u in format string (no. 10) requires 'unsigned int' but the argument type is 'signed int'. [librb/src/dictionary.c:819]: (warning) %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [librb/src/radixtree.c:1080]: (warning) %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [ircd/s_user.c:351] -> [ircd/s_user.c:357]: (warning) Either the condition '0!=source_p' is redundant or there is possible null pointer dereference: source_p. [extensions/ip_cloaking_3.0.c:109]: (warning, inconclusive) The buffer 'buf' may not be null-terminated after the call to strncpy(). [ircd/chmode.c:256]: (style) Clarify calculation precedence for '&' and '?'. [modules/m_help.c:100]: (style) Clarify calculation precedence for '&' and '?'. [modules/m_knock.c:169]: (style) Clarify calculation precedence for '&' and '?'. [modules/m_stats.c:628]: (style) Clarify calculation precedence for '&' and '?'. [modules/m_stats.c:727]: (style) Clarify calculation precedence for '&' and '?'. [librb/src/radixtree.c:601]: (style) Clarify calculation precedence for '&' and '?'. [librb/src/radixtree.c:704]: (style) Clarify calculation precedence for '&' and '?'. [librb/src/radixtree.c:739]: (style) Clarify calculation precedence for '&' and '?'. [librb/src/radixtree.c:763]: (style) Clarify calculation precedence for '&' and '?'. [librb/src/radixtree.c:768]: (style) Clarify calculation precedence for '&' and '?'. [librb/src/radixtree.c:774]: (style) Clarify calculation precedence for '&' and '?'. [librb/src/radixtree.c:781]: (style) Clarify calculation precedence for '&' and '?'. [librb/src/radixtree.c:786]: (style) Clarify calculation precedence for '&' and '?'. [librb/src/radixtree.c:791]: (style) Clarify calculation precedence for '&' and '?'. [librb/src/radixtree.c:804]: (style) Clarify calculation precedence for '&' and '?'. [ircd/wsproc.c:372]: (style) Unused variable: len [modules/core/m_modules.c:382]: (style) Unused variable: i [modules/m_stats.c:741]: (style) Unused variable: amsg [ircd/authproc.c:390]: (style) Unused variable: iter [ircd/authproc.c:391]: (style) Unused variable: client_p Gravatar Simon Arlott2016-10-281-1/+1
* Message handlers should return void.•••Also fix up some return values and stuff to use bool (or void if nothing). I just did it whilst I was here. According to jilles, the return value used to signify whether or not the client had exited. This was error-prone and was fixed a long, long time ago, but the return value was left int for historical reasons. Since the return type is not used (and has no clear use case anyway), it's safe to just get rid of it. Gravatar Elizabeth Myers2016-03-091-11/+10
* Move module description headers to the top•••This is cleaner. Note this was broken out of a much larger piece of work I did, so if there's any problems, I apologise! Gravatar Elizabeth Myers2016-03-091-2/+2
* Do AV2 descriptions for m_[i-k]*Gravatar Elizabeth Myers2016-03-071-1/+4
* Migrate remaining modules to AV2•••No descriptions yet. :( Gravatar Elizabeth Myers2016-03-071-1/+1
* Remove $Id tags from everything.•••These are obsolete and none have changed since 10 years gao... Gravatar Elizabeth Myers2016-03-061-2/+0
* msg: remove last vestiges of the fakelag system. charybdis has never support...Gravatar William Pitcock2016-02-191-1/+1
* modules: chase MsgBuf API changeGravatar William Pitcock2016-02-101-2/+2
* supported: move ISUPPORT tokens provided by modules to their specific modules:•••- m_cmessage: CPRIVMSG/CNOTICE - m_etrace: ETRACE - m_knock: KNOCK - m_services: FNC - m_who: WHOX Gravatar William Pitcock2015-12-261-1/+15
* Remove trailing whitespace from all .c and .h files.•••3134 bytes were removed. Gravatar Keith Buck2014-03-031-4/+4
* Port ircd-seven banfowards to charybdis.•••nenolod gave the thumbs-up to port ircd-seven banfowards to charybdis to spb for a while, and people have asked about it. Might as well do it since it's a slow weekend. Note that as a side effect use_forward is removed from the config and unconditionally enabled! Gravatar Elizabeth Jennifer Myers2011-08-121-2/+2
* knock,topic: Remove useless IsChannelName checks.•••If !IsChannelName(name), then certainly find_channel(name) == NULL. Gravatar Jilles Tjoelker2011-06-251-7/+0
* Update comments for parv[0] removal.Gravatar Jilles Tjoelker2009-01-181-1/+0
* irc_string.h -> match.h, irc_string.h; includes changedGravatar Valery Yatsko2008-04-201-1/+1
* legacy irc sprintf goneGravatar Valery Yatsko2008-04-201-1/+0
* CurrentTime -> rb_currenttime();Gravatar Valery Yatsko2008-04-021-4/+4
* libcharybdis includes gone.Gravatar Valery Yatsko2008-04-021-1/+0
* start making this compileGravatar William Pitcock2008-04-011-1/+1
* [svn] Make /knock send to all channel members on +g (anyone may invite) chann...Gravatar jilles2007-09-091-3/+4
* [svn] - the new plan:••• + branches/release-2.1 -> 2.2 base + 3.0 -> branches/cxxconversion + backport some immediate 3.0 functionality for 2.2 + other stuff Gravatar nenolod2007-01-241-0/+174