Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: znc/znc
base: b6903fd^
head fork: znc/znc
compare: a816be6
Commits on Sep 13, 2011
@psychon psychon Increase the version number to 0.201
Signed-off-by: Uli Schlachter <>
@kylef kylef Fix CChan::TrimBuffer() (#63)
CChan::TrimBuffer() was trying to do "m_vsBuffer.begin() + -<some number>" which would cause a segmentation fault

Fixes #63
@psychon psychon route_replies: Improve the timeout message
Fixes #57.

Signed-off-by: Uli Schlachter <>
@psychon psychon autocycle: Only cycle once in 15 seconds
This should stop all fights against ChanServ. Please note that nothing will
happen if we are the only one in the channel after 15 secs since this module
only checks if it needs to do something when someone leaves a channel.

Signed-off-by: Uli Schlachter <>
Jonas Gorski fix build error when compiling against uclibc(++)
Fixes the following error:

In file included from ZNCString.cpp:10:0:
FileUtils.h: In static member function 'static CString CDir::GetCWD()':
FileUtils.h:246:36: error: 'getcwd' was not declared in this scope

Signed-off-by: Jonas Gorski <>
Signed-off-by: Uli Schlachter <>
Alexey Sokolov Add -r parameter of ZNC to man.
It was missing.

Thanks to flaccid for noticing that.
@psychon psychon admin: Fix getchan {inconfig,keepbuffer,detached}
Instead of giving a useful result, they returned their result by sometimes
omitting the first character of the option name. Whoops.

Signed-off-by: Uli Schlachter <>
@kylef kylef Don't timeout bouncedcc connections, inactive bounced DCC chat's woul…
…d be dropped otherwise
Jim Hull fixed a null reference to pClient in hooks 'OnChanBufferStarting,OnCh…
…anBufferStarting,OnChanBufferEnding,OnChanBufferEnding', such that when pClient is NULL the hooks are called on all clients associated to that user



Signed-off-by: Uli Schlachter <>
Alexey Sokolov Install .py files along with .pyc
(cherry picked from commit 5e73af6)
Jim Hull rework SendBuffer fixing an issue where ClearBuffer() nuked the buffe…
…r after playing to the first client

(cherry picked from commit 793c346)


Jim Hull fix formatting 610bfe3
Commits on Sep 21, 2011
@psychon psychon Increase the version number to 0.202
Signed-off-by: Uli Schlachter <>
Commits on Dec 31, 2011
@DarthGandalf DarthGandalf Fix crash in bouncedcc module.
It happens when DCC RESUME is received.
Affected ZNC versions: 0.200, 0.202.

Thanks to howeyc for reporting this and providing the patch.
Commits on Jan 01, 2012
@psychon psychon Increase the version number to 0.203
Signed-off-by: Uli Schlachter <>
Alexey Sokolov Unload modules in reverse order. b5043eb
TorrentialStorm Don't send server redirects to client [TorrentialStorm] bc35c3e
TorrentialStorm Don't forward server redirects to client. 7474c43
@kylef kylef Let a user filter the result of help CModule::HandleHelpCommand 39f97a8
Alexey Sokolov Add a message sent to user in case of redirect. b517606
@psychon psychon Drop @DEFS@ from the build system
This will only ever be set to -DHAVE_CONFIG_H. However, we shouldn't give this
flag to other people's code (e.g. through znc-config). Since we don't need it,
it's best to just drop it completely.

Signed-off-by: Uli Schlachter <>
Alexey Sokolov Move autocycle module to extra.
Modern/decent networks have services anyway, and for registered channels
this module is useless. Also it tends to fight ChanServ in case if
ChanServ joins/parts the channel to remove ops.

Users of deprecated ne^W^Wnetworks without services can use it from extra.
@psychon psychon SHA256.cpp: Include some ZNC header first
This is required to make sure that zncconfig.h is the very first header that is
being included.

This problem was noticed by someone reporting some "macro redefined" warnings.

Signed-off-by: Uli Schlachter <>
@psychon psychon Send a MODE request when JOINing
This kind of reverts/fixes f1cb09b.

Robby found a bug with evil ChanServ which goes like this:

- You join an empty, but registered channel and the IRCd applies its default
  modes (+nt), but ZNC didn't ask for MODE, so doesn't know this.
- ChanServ applies whatever channel modes it wants to apply. This causes ZNC to
  see a mode change (e.g. +s).

The result of this is that ZNC thinks that the channel has mode +s and it will
tell every client that connects to it about this.

The fix is to send a MODE request when JOINing. To make sure that we don't
confuse clients, we block the reply.

Signed-off-by: Uli Schlachter <>
@schoentoon schoentoon This avoids your irc windows being filled with away stuff
Downside of antiidle is that because it messages yourself internally
the irc server will send messages to you when you're marked as away.
This can end up being really annoying, so those messages are blocked
with these changes.

Signed-off-by: Toon Schoenmakers <>
Alexey Sokolov Fscking perl... This fixes modperl's compilation. d891b54
Alexey Sokolov Improve admin module description. 292f921
@kylef kylef identfile: Improve the debug messages
The new debug messages allow us to see when the identfile is unlocked


Alexey Sokolov Check for /usr/bin/swig2.0 too.
SWIG 2 is named that way on Debian-based systems...
@psychon psychon Don't use "mkdir" during install
lahwran just showed up on irc and told us that he installed znc, but znc failed
to find any modules. The reason for this was his umask 077 which means that
"make install" installed stuff so that only root can access it.

The solution is do use "install -d" since that makes sure to ignore the
currently set umask.

However, google finds results which say that "install -d" might mess with stuff
of pre-existing directories when it shouldn't, so we must first test if the
directory already exists before calling install. Obviously, this makes our
Makefile a lot more readable. :-(

I didn't have time to test this properly, so stuff might break.

Signed-off-by: Uli Schlachter <>


Alexey Sokolov Change the order of -I directives in Makefile.
If ZNC was already installed, it had its headers somewhere.
The chances are that something else can be installed at the same place,
including some ZNC's dependency	whose include dir would be included to
CXXFLAGS. Another possibility of including that dir is triggered when
using FreeBSD - ./configure explicitly adds -I/usr/local/include in that

And so we get a directory with old ZNC headers included to CXXFLAGS
before our new shiny ./include.

With their order changed, the proper headers are included now.

Thanks to those who repored the issue, thanks to PsWii60 for helping to
track it down, thanks to my parents for creating me and therefore
enabling me to fix it, and to many other people.

@psychon psychon route_replies: Handle raw 482
lahwran reported the following message from *route_replies and also figured out
which message we failed to handle, thanks!

<*route_replies> This module hit a timeout which is possibly a bug.
<*route_replies> To disable this message, do "/msg *route_replies silent yes"
<*route_replies> Last request: MODE #somesecretchannel I

Signed-off-by: Uli Schlachter <>
@kylef kylef Remove notes on the GENERATE command in the cert module 7391a5c
Alexey Sokolov autoreply: Honor RFC 2812.
There must not be autoreply for notices.

Thanks to nyuszika7h for noticing this.
Commits on Jan 22, 2012
@psychon psychon Increase the version number to 0.204
Signed-off-by: Uli Schlachter <>
Commits on Feb 29, 2012
@DarthGandalf DarthGandalf Identfile: don't crash when ZNC is shutting down.
Thanks to Domin for reporting this.


Commits on Mar 23, 2012
@kylef kylef CTCP's with no values should not be passed to the client
Fixes #105
@psychon psychon CFile: Make sure errno is always set correctly
This fixes weird problems were strerror() made us print garbage.

Signed-off-by: Uli Schlachter <>
Commits on Mar 27, 2012
@DarthGandalf DarthGandalf Add Show command to identfile.
It should help us to debug that annoying bug of identfile aborting
@kylef kylef identfile: Make sure member values are NULL a816be6
Something went wrong with that request. Please try again.