Commit Graph

1648 Commits

Author SHA1 Message Date
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
Andrew Northall
0f8441fdff Channel name cannot contain space 2014-01-18 03:24:23 +00:00
Alexey Sokolov
4e2c5e78f0 Merge pull request #449 from dgw/ircline-nickserv
ircline.org nickserv message support
2014-01-17 13:25:46 -08:00
Alexey Sokolov
d05e069bd4 Fix modperl build on MacOS X
.so is not the right extension for shared objects there
2014-01-17 21:09:03 +00:00
Alexey Sokolov
14e3bac2c1 Merge pull request #448 from dgw/patch-1
Add identify prompt for StarChat.net
2014-01-17 12:23:16 -08:00
Falk Seidel
f19b4caa43 Welcome to 2014 - year 10 with ZNC 2013-12-31 10:10:55 +01:00
dgw
4747c0760a ircline.org nickserv message support
Makes sure ZNC understands when NickServ at ircline.org (N) asks
the user to identify. Addresses #364
2013-12-19 13:57:46 +04:00
dgw
e379a7a81a Add identify prompt for StarChat.net
Apparently StarChat.net uses a very old (?) or obscure NickServ
service that doesn't send any of the more common prompts for ID.
(It also doesn't support nick grouping, more's the pity.)
2013-12-17 16:38:18 -05:00
Andrew Northall
d138cda8f4 Add AddChan/DelChan command to controlpanel module 2013-12-11 01:03:07 +00:00
Alexey Sokolov
9e0597fd07 Merge pull request #432 from dgw/out-of-networks-err-sp
Tweak wording of "out of networks" errors
2013-11-21 09:50:51 -08:00
dgw
2b3d40a501 tweak wording of "out of networks" errors 2013-11-21 13:07:17 +04:00