Commit Graph

2837 Commits

Author SHA1 Message Date
Alexey Sokolov
6bf774d853 Use INET6_ADDRSTRLEN instead of magic number 40.
Also 40 is too small, the string can be longer.
2012-04-18 21:34:23 +07:00
Alexey Sokolov
c48a686f2b Put version info to config during --makeconf
This fixes erroneous message
"Found old config from ZNC < 0.203. Saving a backup of it." when
creating new config.
2012-04-15 10:09:36 +07:00
Alexey Sokolov
f557d4b805 Rename away/autoaway module to awaystore.
Now it at least tries to explain what it does...
2012-04-15 00:06:26 +07:00
Alexey Sokolov
f027be9576 Remove = from output of nickserv ViewCommands
It was very confusing. People tried to use SetCommand with = too...
2012-04-15 00:05:07 +07:00
Alexey Sokolov
dc8cdd40de Make debug lines a bit smaller.
Well, a byte actually, not bit...
2012-04-14 19:07:11 +07:00
Alexey Sokolov
4e16e9f80e Fix debug output of identfile. 2012-04-14 12:47:46 +07:00
Alexey Sokolov
b496b282b2 Argh, commited wrong stuff... 2012-04-13 02:52:18 +07:00
Alexey Sokolov
87a79f83d9 Fix XML errors on network page in webadmin.
Thanks to thread for reporting it.
2012-04-13 02:49:18 +07:00
Alexey Sokolov
33889c97e6 Change help text of some modules.
The word "Please" could be understood that the argument is necessary...
2012-04-10 23:20:01 +07:00
Alexey Sokolov
3e458a98e4 Merge some work by Jens-Andre Koch
Only his changes to the core are presented here.
Unfortunately, the skin itself looks ugly on Opera,
and simply doesn't work on Firefox...

Merge branch 'master' into znc-ation

Conflicts:
	modules/data/lastseen/tmpl/lastseen_WebadminUser.tmpl
	modules/data/webadmin/tmpl/settings.tmpl
2012-04-10 23:19:15 +07:00
Uli Schlachter
9b6ea8251c WebModules: Fix a NULL pointer dereference
Commit b1593238d5 started using the module pointer before the NULL
check. This caused crashes whenever someone (even without a login!) accessed a
web page on znc for a module which didn't exist.

Thanks to J0rd4n` for reporting this to us.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-04-09 21:42:04 +02:00
Alexey Sokolov
6876961b79 Fix crash in webadmin when adding a new user.
My recent patch, which added ability to put arbitrary bindhost when
global list is missing, broke it...

Thanks to Jord for reporting it.
2012-04-08 00:24:26 +07:00
Alexey Sokolov
ce6a9ce327 Move floodprotection js out of .tmpl 2012-04-01 12:39:14 +07:00
Alexey Sokolov
1a8455b2b9 Ups, commited debug stuff accidentally... 2012-04-01 12:15:33 +07:00
Alexey Sokolov
b8822b8bfb webadmin: allow edit bindhost without global list. 2012-04-01 11:52:31 +07:00
Alexey Sokolov
ba99a64c7c Merge branch 'master' of github.com:znc/znc 2012-03-31 06:49:04 +07:00
Alexey Sokolov
28f6809af8 Webadmin: edit listen ports 2012-03-31 06:48:24 +07:00
Alexey Sokolov
c252a239d7 Fix HTML style.
Thanks to Jens-Andre Koch for suggestion.
2012-03-31 06:22:25 +07:00
Uli Schlachter
ed5610f363 imapauth: Follow RFC more closely
The IMAP RFC allows the server to announce its capabilities before replying to
the LOGIN command. imapauth would misinterpret that as a failed login.

The fix is to only handle lines which contain the tag ("AUTH") used for the
login command.

Thanks to rlpowell for reporting that imapauth doesn't work against
imap.google.com and for testing the fix.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-30 23:15:57 +02:00
Uli Schlachter
d5b84f50db Fix an dangerous substr() call
A malicious IRCd could send a WHO reply for a nick which consisted completely
out of prefix characters (thus an empty nick). In this case
std::string::find_first_of() would return std::string::npos. This argument would
make std::string::substr() throw an exception and kill the process.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-30 23:13:03 +02:00
Alexey Sokolov
95053f4db4 Increase the version number to 0.207 2012-03-29 23:28:25 +07:00
Alexey Sokolov
88a13d7604 Fix XHTML in webadmin pages.
Thanks to Zetas for reporting it.
2012-03-29 22:20:29 +07:00
Jens-Andre Koch
84d9377a4a merging upstream 2012-03-29 11:18:45 +02:00
Jens-Andre Koch
5e0e14523b - lowered the background color to get more focus on main content 2012-03-28 20:20:32 +02:00
Jens-Andre Koch
bfc829d38d - used CString on Info.GetHasArgs 2012-03-28 16:59:51 +02:00
Jens-Andre Koch
0760dbada1 - fixed unintentional modification in chanserver
- added statement about using nuvola icons under LGPL 2.1
- added full license text
2012-03-28 15:26:33 +02:00
Alexey Sokolov
788a469340 Fix certauth to give proper XHTML too. 2012-03-28 20:21:47 +07:00
Alexey Sokolov
ef82fce047 Fix XHTMLity of some modules. 2012-03-28 20:17:38 +07:00
Jens-Andre Koch
92ec938150 Added Webskin "znc-ation" 2012-03-28 12:24:27 +02:00
Alexey Sokolov
2f853bee61 A bit more debug output for tdns 2012-03-24 00:36:13 +07:00
Alexey Sokolov
4b3b0a5535 webadmin: Support javascript-disabled browsers. 2012-03-24 00:09:19 +07:00
Alexey Sokolov
4865a2da0c Serve web pages as utf-8 2012-03-23 11:53:20 +07:00
Alexey Sokolov
c217004d0e Merge branch 'master' of github.com:znc/znc 2012-03-23 11:14:54 +07:00
Alexey Sokolov
9b3a764a6c Use XHTML 2012-03-23 11:14:29 +07:00
Kyle Fuller
ae6b4c390a Allow loading chansaver as a network module 2012-03-22 23:37:55 +00:00
Kyle Fuller
da9d080968 identfile: Make sure member values are NULL 2012-03-22 22:49:59 +00:00
Alexey Sokolov
b46231b12d Let lang to be the same as xml:lang in web. 2012-03-23 01:17:29 +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
7969e73f5c route_replies: Use CModCommand 2012-03-21 22:09:13 +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
Kyle Fuller
7beb7172d6 Set a valid HTML5 doctype before we use HTML5 features
It isn't valid HTML5 to use maxlength with input[type="number"]
2012-03-21 17:32:29 +00:00
Alexey Sokolov
7b42dc7063 Webadmin: use numeric inputs for numbers.
Depending on browser, it can be a spinbox, for example.
HTML5 FTW :P
2012-03-21 22:01:50 +07:00
Kyle Fuller
38ce17906c Don't forward WHO replies with multi-prefix to unsupported clients 2012-03-21 15:23:16 +00:00