Alexey Sokolov
28f6809af8
Webadmin: edit listen ports
2012-03-31 06:48:24 +07:00
Alexey Sokolov
95053f4db4
Increase the version number to 0.207
2012-03-29 23:28:25 +07:00
Alexey Sokolov
30b99d58f3
Show list of timezones in webadmin.
2012-03-23 01:16:25 +07:00
Alexey Sokolov
1d4d657e23
Deprecate TimezoneOffset
2012-03-22 23:21:25 +07:00
Alexey Sokolov
f0cab46c3f
Merge https://github.com/znc/znc/pull/78 (TZ)
...
Conflicts:
modules/admin.cpp
src/User.cpp
2012-03-22 22:58:46 +07:00
Alexey Sokolov
355d5feb7a
Move TZ-related code to own place.
2012-03-22 22:20:41 +07:00
Alexey Sokolov
e83efead26
Nicify webadmin interface for flood protection.
2012-03-22 13:22:13 +07:00
Alexey Sokolov
19dff7cded
Remove decl of func whose definition was removed.
2012-03-22 12:19:45 +07:00
Kyle Fuller
6999c8222d
ResetJoinTries once we enable a channel
...
Fixes #83
2012-03-21 22:25:45 +00:00
Kyle Fuller
db7c47f97d
Rewrite the JOIN channel logic, dropping MaxJoins
...
Instead we fill the JOIN line up with as many channels as we can fit in
an IRC line. Rate limiting is done per command now, making MaxJoins
unnecessary.
2012-03-21 22:06:54 +00:00
Alexey Sokolov
fb2b5193bc
Show link to http://znc.in from web
2012-03-22 04:27:26 +07:00
Alexey Sokolov
c98abf00a5
Implement protection from flood.
...
For ZNC-server connection
2012-03-21 19:48:26 +07:00
Alexey Sokolov
3aa6b581fc
Csock: able use non-int number of secs for timer.
...
This patch happened in upstream csocket too, so update won't break
anything.
2012-03-20 09:03:44 +07:00
Alexey Sokolov
819776873d
Add SSL/IPv6/DNS info to znc --version
2012-03-15 01:38:37 +07:00
Kyle Fuller
f44b7fc7c4
Clear channel buffers if keep buffer is disabled and we're online
2012-03-06 17:55:14 +00:00
Kyle Fuller
c54b3d0b87
webadmin: Implement clone user
...
Closes #127
2012-02-24 17:26:04 +00:00
Uli Schlachter
252e6d7151
Threaded DNS: Handle spurious wakeups
...
As DarthGandalf noticed, POSIX allows spurious wakeups from pthread_cond_wait.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2012-02-19 12:13:25 +01:00
Kyle Fuller
59ad967d77
Merge branch 'queue'
2012-02-14 19:32:03 +00:00
Uli Schlachter
0bdb18a427
Threaded DNS: Use a thread pool
...
When a DNS thread is done with its lookup, instead of existing immediately, it
now waits for another DNS lookup to do instead. This avoids the cost of
starting/stopping threads all the time.
To make sure that (for whatever reason) the number of waiting threads doesn't
get too high, threads exit if there are more than two DNS threads idling around
with nothing to do.
Fixes #132 .
Signed-off-by: Uli Schlachter <psychon@znc.in >
2012-02-14 20:28:28 +01:00
Kyle Fuller
e47f76db6c
Allow the connection queue to be paused
2012-02-14 19:22:33 +00:00
Kyle Fuller
e08d53dcd5
Show network modules on the web interface menu
...
Closes #121
2012-02-13 23:58:32 +00:00
Kyle Fuller
b1ed9c9b74
Add methods to CModule to get the web path
...
Add these values to the template and use them when linking to any module
2012-02-09 17:07:28 +00:00
Kyle Fuller
b1593238d5
Make the URL's for web modules include the module type ( #121 )
2012-02-09 14:19:26 +00:00
Uli Schlachter
ec3317a8e5
Merge branch 'debug_timestamps' of ssh://github.com/HaleBob/znc
2012-02-05 21:18:39 +01:00
Uli Schlachter
233897b3a8
threaded DNS: Remove an unneeded function
...
This inlines the function into its only caller.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2012-02-04 14:15:52 +01:00
Uli Schlachter
94c7b04245
Threaded DNS: Remove TDNS mutex
...
POSIX actually guarantees for us that this white is atomic and thus a partial
write is not allowed.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2012-02-04 14:15:52 +01:00
Alexey Sokolov
ae68a5a608
Mods are network mods by default.
...
Network modules are the simplest ones.
2012-02-04 00:29:58 +07:00
Alexey Sokolov
937998d4a5
Merge branch 'master' into tdns
2012-01-15 13:12:28 +07:00
Alexey Sokolov
ff8065ed32
TDNS: Fix few incompabilities with last Csocket.
2012-01-15 13:11:56 +07:00
Uli Schlachter
10ece5d2cc
CHTTPSock: Remove some useless member methods
...
The defaults from Csock / CSocket will be fine.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2012-01-14 12:09:25 +01:00
Uli Schlachter
c87e7cf5ba
Update Csocket to e00323f9f18
...
This breaks API for Csock::SockError()!
Signed-off-by: Uli Schlachter <psychon@znc.in >
2012-01-14 11:33:38 +01:00
Kyle Fuller
3d7d1793aa
Move IRCConnectEnabled to each network instead of a global user setting
2012-01-11 14:49:17 +00:00
Uli Schlachter
87aad36121
Increase the version number to 0.205
...
Signed-off-by: Uli Schlachter <psychon@znc.in >
2012-01-01 14:50:20 +01:00
Un1matr1x
73270ff023
Welcome in 2012
2012-01-01 09:30:19 +01:00
Alexey Sokolov
717d0596e3
Use threads for resolving DNS.
...
Drop support for c-ares. Though Csocket still supports it, ZNC's
configure script doesn't enable it anymore.
This should fix big brokenness of c-ares library, which tried to
connect via IPv6 even when IPv6 is disabled on the system.
Also should fix github issue #37
2011-12-27 00:29:51 +07:00
Alexey Sokolov
9e047a3beb
Store all 005 values in a map.
...
Thanks to jayne for requesting this.
2011-12-04 19:53:26 +07:00
HaleBob
0f739de2c0
Print timestamps in front of debug messages.
2011-11-21 19:32:15 +01:00
Kyle Fuller
01b15bfb5b
Fix webadmin when editing a user
...
Since this creates a new user, and then clones it. It would clear all
the networks. To fix this, I have made an option bCloneNetworks to
CUser::Clone. This replaces the bCloneChans because this is unnessecery
now.
Fixes #88
2011-11-13 00:28:44 +00:00
Kyle Fuller
0b57b7d437
Properly handle CIRCNetwork's when we rehash
...
This commit does the following:
- Do not segfault on rehash
- Delete CIRCNetwork's when they are removed from config
- Update to the configs nick/altnick/realname/ident
2011-11-09 20:02:41 +00:00
Uli Schlachter
a97abc53f7
Just some small comment explaing some craziness
...
Signed-off-by: Uli Schlachter <psychon@znc.in >
2011-10-30 13:39:34 +01:00
Stéphan Kochen
355f196bbe
Working savebuff saving and loading.
...
It's even backwards compatible!
2011-10-27 19:54:23 +02:00
Stéphan Kochen
c36480c8a1
Store and format time in CBufLine.
...
Buflines need to know which part of text to wrap with the timestamp. The
second parameter to `AddLine` (and shorthands) is that text, which after
wrapping is added as the `text` parameter to `NamedFormat`.
Timestamps are formatted at the moment buffers are flushed to the
client. The client parameter to `GetLine` provides access to the User
and the new server-time capability.
2011-10-27 18:25:25 +02:00
Stéphan Kochen
c3d677a4d8
Slight refactor of CBuffer & CBufLine.
...
This is in preparation of adding more attributes to a CBufLine. Going
forward, at least savebuf will need access to all of these to properly
serialize buffers.
Basically, instead of relying on `GetLine()` to return `false`, the
caller is now expected to check bounds himself using `Size()`.
2011-10-27 18:25:25 +02:00
Stéphan Kochen
cb4131e320
Unify channel buffers and CBuffer.
2011-10-27 18:25:25 +02:00
Stéphan Kochen
948ae2510c
Rewrite Buffer to store a format string.
...
Will use this to allow more parameters to be inserted at the time the
buffers are flushed to the client.
2011-10-27 18:25:24 +02:00
Stéphan Kochen
2fdf54d43d
Add string formatting function with named params.
...
In addition to the formatting function, a matching Escape type is added.
2011-10-27 18:25:24 +02:00
Stéphan Kochen
f7e5b41ab1
Add server time CAP and Client flag.
2011-10-27 18:25:24 +02:00
Kyle Fuller
200940756b
Update Csocket to d7206c6aa88bd7988f
2011-10-21 01:40:36 +00:00
Kyle Fuller
b8c2da95f1
Make the OnInvite hook return EModRet so we can ignore invites
2011-10-21 00:20:58 +00:00
Kyle Fuller
e11d338040
Pass the nick who send an invite with the OnInvite hook
2011-10-20 23:44:03 +00:00