Commit Graph

1322 Commits

Author SHA1 Message Date
orchid-hybrid
b129e209e8 Update autoop.cpp
Fix indentation and key/channels display for users removed by deleting all hostmasks
2014-06-08 10:27:16 -04:00
orchid-hybrid
73f89c79fe Update autoop.cpp
show key and channels when deleting a user by removing all their hostmasks
2014-06-08 10:44:52 +01:00
orchid-hybrid
baf14adf0c Update autoop.cpp
Set it so that when you remove all hostmasks of a user, the user is also deleted
2014-06-08 10:18:39 +01:00
orchid-hybrid
9189e4d90c Update autoop.cpp
formatting improvements
2014-06-08 09:58:15 +01:00
orchid-hybrid
20f925de19 Update autoop.cpp
Further improvements to autoop module:

* Tabulate the data vertically with a new column for each hostname
* Rename table column to Hostmasks
* <mask>,[<mask>] inside help for AddHosts
* Help for AddUser updated
2014-06-08 09:38:46 +01:00
orchid-hybrid
ba1ff0ec2a Update autoop.cpp
Added support for multiple comma separated hostmasks per user. Added new commands to add and remove hostmasks. Kept the table column names the same so as to not break back-compatability.

I have tested adding and removing several hostmasks for multiple users and checked that it does auto-op them correctly, looks good!
2014-06-08 08:34:17 +01:00
Alexey Sokolov
638b3b58da Merge branch 'master' of github.com:znc/znc 2014-06-01 21:10:40 +01:00
Alexey Sokolov
a3f4f1ebd9 Merge commit 'refs/pull/557/head' of github.com:znc/znc 2014-06-01 21:06:25 +01:00
Vasily Fomin
4338ae5cc5 Show empty checkbox if module can be loaded by the topic column.
Fix const correctnes of the CModInfo::SupportsType method.
2014-06-01 21:37:39 +02:00
Sam Dodrill
9246dc3da4 modules/autoreply: Prefer NOTICE over PRIVMSG
Fixes RFC 1459 compliance and helps prevent bot loops between ZNC and
other chatbots.

Closes issue #556
2014-06-01 10:35:02 -07:00
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
Alexey Sokolov
66fecf8e97 Merge pull request #559 from ahf/quakenet-join-after-cloaked
Quakenet Join after Cloaked
2014-05-29 22:34:53 +01:00
Alexander Færøy
c59e4d1bee Add JoinAfterCloaked setting to q.cpp
This patch adds a new setting to the Q module, JoinAfterCloaked, that
allows the user to specify whether ZNC should postpone joining channels
before the user is cloaked.

Fixes #286
2014-05-29 23:10:38 +02:00
Alexander Færøy
db0e0995e2 Add OnJoining module hook.
This patch adds an OnJoining module hook that allows a module to allow
or disallow joining any given channel.
2014-05-29 23:10:30 +02:00
Alexander Færøy
2264812a14 Use HMAC-SHA-256 instead of HMAC-MD5 2014-05-29 18:07:01 +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