Vasily Fomin
16b268deef
Update pages template so no unnecessary global JS variable is being introduced.
2014-05-30 22:44:26 +02:00
Vasily Fomin
16697d93ce
Fixes seg fault with new user page.
...
Refactor loops and templates so less code is needed.
2014-05-30 00:13:09 +02:00
Vasily Fomin
3ad285243d
Add "Loaded" flag to the user page.
2014-05-29 17:49:41 +02:00
Vasily Fomin
78f7897dfc
Add "Loaded" flag to the network page.
2014-05-29 17:39:48 +02:00
Vasily Fomin
4bdaa3cc22
Add "Loaded" flag to the global settings page.
2014-05-29 17:14:32 +02:00
Alexey Sokolov
4304798a97
Merge pull request #549 from dgw/no-webadmin-arg-autocomplete
...
Simple solution to #546
2014-05-19 22:44:37 +01:00
dgw
9aee99608d
webadmin: module argument autocomplete="off"
...
This is a concern for nickserv, and possibly also modules like awaystore.
2014-05-11 16:29:57 -04:00
kobuki
5d13cd9da2
Receiving DCC transfers fail with certain iroffer daemons. The bouncedcc module ignores file name quotes sent by the server (e.g. when the file name contains spaces) and consequently parses the DCC parameters incorrectly.
...
Fixes #289
2014-05-05 11:48:33 +02:00
Alexey Sokolov
2f0bc0c46c
Modpython: fix calling overloaded methods with parameter CString&
2014-05-01 22:20:05 +01:00
Alexey Sokolov
c89771d561
Improve navigation in webadmin: "Save and continue"
2014-04-26 17:47:58 +01:00
Anders Bergh
4db8d264bc
Q module: Add channels invited to by Q when JoinOnInvite is enabled.
2014-04-23 12:05:45 +02:00
Kyle Fuller
bc795f03cb
[chansaver] Correctly load from all module types
2014-04-20 19:32:49 +01:00
Kyle Fuller
ef5050e3ab
[chansaver] Add support for loading as a global module
...
This also fixes a bug where loading the module as a network causes other
channels in different networks to be saved
Closes #529
2014-04-16 07:02:39 +00:00
Uli Schlachter
74c91e8cfa
controlpanel: Check if adding a new channel succeeded
...
Signed-off-by: Uli Schlachter <psychon@znc.in >
2014-04-13 23:12:03 +02:00
Uli Schlachter
5e6e3be32a
webadmin/add channel: Correctly handle channel names
...
The CChan constructor makes sure that the channel name begins with a valid
channel prefix. Thus, this could change the name of the resulting channel.
When you edited an irc network which already had a channel "#foo", were
connected to IRC (so ZNC knows which prefixes are valid) and added a channel
"foo", this would lead to a problem:
Webadmin checks and sees that there is no channel "foo" yet. Webadmin creates a
new CChan instance for "foo". The CChan constructor notices that "f" is not a
valid channel prefix and instead calls itself "#foo". Then,
CIRCNetwork::AddChan() would see that this channel already exists, delete the
given channel and return false.
However, webadmin didn't check this result and would continue changing settings
on an already destroyed CChan instance.
Fix this by checking if the channel exists after CChan had its chance to mess
with the channel name. Also handle failures from CIRCNetwork::AddChan().
Fixes #528 .
Signed-off-by: Uli Schlachter <psychon@znc.in >
2014-04-13 20:41:34 +02:00
Anders Bergh
5a7796f0ae
Q module: Add web config.
...
Move Cloak() from the Set command to SetUseCloakedHost() so that the
web config can use it also.
2014-04-12 16:45:26 +02:00
Anders Bergh
0d1481f991
Q module: Don't cloak host on first module load while connected to IRC.
2014-04-12 15:53:14 +02:00
Anders Bergh
b5e8ff2599
Q module: Store default NVs on module load.
2014-04-12 15:04:03 +02:00
Alexey Sokolov
8ccd95bc6e
Revert "Q module: Don't enable the UseCloakedHost option by default."
...
This reverts commit a7e8775efe .
Existing setting for existing users (who didn't do SetNV) should not change
Thanks to fred for reporting it
Reopen #525
2014-04-12 09:45:06 +01:00
Alexey Sokolov
9cf61ac6d4
Argh, fuck it. Rename fixed (pointer) versions of OnMode to OnMode2
2014-04-12 08:51:04 +01:00
Alexey Sokolov
efafc8ccd2
Merge pull request #525 from anders/q-nocloakdefault
...
Q module: Don't enable the UseCloakedHost option by default.
2014-04-11 23:23:38 +01:00
Anders Bergh
a7e8775efe
Q module: Don't enable the UseCloakedHost option by default.
...
On QuakeNet's ircd you can't unset user mode +x once set. But loading
the Q module will set it immediately, possibly requiring a reconnect
if you don't want to use a cloaked host.
Signed-off-by: Anders Bergh <anders1@gmail.com >
2014-04-11 17:15:16 +02:00
Anders Bergh
dacea9badb
Q module: Add join-on-invite option.
...
Use case: On QuakeNet you can /msg Q CHANLEV #chan <yourself> +j to
be invited once you authenticate. Anyone known on the channel (mode +k)
is able to set/unset chanlev +j for themselves.
Signed-off-by: Anders Bergh <anders1@gmail.com >
2014-04-11 17:07:14 +02:00
Alexey Sokolov
90bc025906
Add encoding to controlpanel's help
2014-04-08 07:39:01 +01:00
Richard Schwab
e77edb409e
Fix *controlpanel not checking whether the bindhost is in the whitelist
2014-03-18 14:04:15 +01:00
Richard Schwab
530bbb5b0d
Fix BindHost in SetNetwork in *controlpanel to check permissions
2014-03-17 09:30:04 +01:00
Richard Schwab
cdd16f3933
Add BindHost to Get/SetNetwork in *controlpanel
2014-03-16 17:12:04 +01:00
J-P Nurmi
76bfa99dd0
Add module hooks for raw client and server messages
2014-03-04 00:24:15 +01:00
Alexey Sokolov
618d9c58a4
Fix chansaver's channel keys by adding other OnMode() hooks
2014-02-27 00:49:45 +00:00
Alexey Sokolov
97207113d0
webadmin: default uriprefix is "/"
2014-02-17 00:58:37 +00:00
Alexey Sokolov
1c8e9b9355
Merge pull request #485 from uu1101/uriprefix
...
Allow serving the web interface under a subpath
Fix #480
Fix #138
2014-02-17 00:44:37 +00:00
uu1101
46975cd9f1
Use absolute URIs in Redirect
...
Although most browsers seem to accept relative redirects, it is not
allowed by HTTP/1.1.
This commit changes relative URIs to absolute ones when redirecting.
2014-02-16 12:45:10 +01:00
uu1101
4376b373d8
Prepend URIPrefix to web interface links
...
Prefix links in templates with URIPrefix and add the input field to the
Listener editor.
The URIPrefix is provided as a top-level template variable. All URIs
have been changed to have the prefix prepended.
2014-02-16 12:45:10 +01:00
uu1101
88c85b0396
Add URIPrefix listener option
2014-02-16 12:45:09 +01:00
dgw
f33212b902
Add new columns to listsockets tmpl
2014-02-10 23:25:31 +04:00
dgw
b98ae214b2
Add traffic stats to listsockets webadmin table
...
Table is not displaying, however. Odd.
2014-02-10 21:52:18 +04:00
dgw
f244d7ab45
Add socket traffic stats to listsockets response
...
Not yet added to Web interface though.
2014-02-10 20:53:45 +04:00
Alexey Sokolov
17b1b3c0f6
Merge pull request #481 from KiNgMaR/squash-some-warnings
...
squash some compiler warnings
2014-02-07 20:23:18 +00:00
Ingmar Runge
39468f6aa2
certauth: improve const correctness
2014-02-06 18:46:07 +01:00
Ingmar Runge
f4a7386ad4
certauth: case insensitive hex key comparison
...
As noted in issue 464, comparing the hex representation of the public
key fingerprint should be case insensitive.
2014-02-06 18:42:22 +01:00
Ingmar Runge
b3021f913e
squash some compiler warnings
2014-02-06 17:52:42 +01:00
Alexey Sokolov
4e5a45f73e
Fix build of modperl under MacOS X, again
2014-02-01 16:08:56 +00:00
Wuggingston Wugsalot
d2cd657cfe
Minor cosmetic changes
...
Refactored difficult-to-grok code involved with displaying alias
Fixed crash on alias error when a user isn't associated with a network
2014-01-31 17:11:22 -05:00
Alexey Sokolov
55c299fec6
Support encodings in *controlpanel
2014-01-27 00:27:07 +00:00
Alexey Sokolov
60b2f559dc
Fix alias mod to compile with old compilers
2014-01-25 17:08:31 +00:00
Alexey Sokolov
366158d907
Add charset to version info
2014-01-25 13:50:07 +00:00
Alexey Sokolov
cfc1227171
Drop old charset module
...
It didn't work well with webadmin
2014-01-25 13:50:07 +00:00
Kuba Niewiarowski
1587103d36
Disable autocomplete password on add_edit_user.tpml
...
Autocomplete should be desabled because in default web browsers fill this resoulting "Invalid user settings" message when for example user changes skin.
2014-01-23 01:58:45 +01:00
Wuggingston Wugsalot
18a02abfd3
Added alias module for ZNC-side command interception and processing
2014-01-18 21:38:58 +00:00
Alexey Sokolov
be6094a464
Merge commit 'refs/pull/445/head' of github.com:znc/znc
2014-01-18 17:27:07 +00:00