Commit Graph

1025 Commits

Author SHA1 Message Date
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
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
Alexey Sokolov bf25eee520 Merge branch 'master' of github.com:znc/znc 2012-03-21 20:14:59 +07:00
Alexey Sokolov afaef88807 Edit flood protection in webadmin. 2012-03-21 20:13:53 +07:00
Kyle Fuller 5618cf78d7 webadmin: Ask for confirmation when deleting a network
Closes #142
2012-03-19 00:34:41 +00:00
Kyle Fuller 27bebf1ca4 webadmin: The "Name" field on the add network page is the network name 2012-03-16 22:56:08 +00:00
Alexey Sokolov 91e2256377 Clarify that only admins can load shell module.
So many people think that anyone can load it, just because they see it
in the list...
2012-03-15 01:10:09 +07:00
Alexey Sokolov 9b5eb910f3 Add Show command to identfile.
It should help us to debug that annoying bug of identfile aborting
connections...
2012-03-15 01:04:27 +07:00
Kyle Fuller 9b219289a6 Python: Override __eq__ to allow comparison of strings
Closes #135
2012-02-28 18:08:57 +00:00
Kyle Fuller 9d7c0d050b python: Allow iterating over CModules
Closes #137
2012-02-28 18:05:49 +00:00
Kyle Fuller f4c2f911ae modpython: Remove some global module hooks which won't work
OnLoginAttempt
    OnClientCapLs
    OnGetAvailableMods
2012-02-28 15:51:16 +00:00
Kyle Fuller 5995fc530e Remove references to CAres from mod{python,perl} 2012-02-28 14:16:53 +00:00
Kyle Fuller 961e3a81c6 modpython: Support global module hooks #98
The commit doesn't add support for the following module hooks:

    void OnClientCapLs(CClient* pClient, SCString& ssCaps)
    EModRet OnLoginAttempt(CSmartPtr<CAuthBase> Auth)

The reason for this is they do not currently work with codegen.pl
2012-02-26 15:03:25 +00:00
Kyle Fuller 478dace3f5 send_raw: Add a command to send a line to the current client 2012-02-26 13:24:50 +00:00
Kyle Fuller c54b3d0b87 webadmin: Implement clone user
Closes #127
2012-02-24 17:26:04 +00:00
Alexey Sokolov 7f8fbc2294 Drop antiidle, fakeonline and motdfile.
If someone needs them, feel free to resurrect.
2012-02-21 19:59:10 +07:00
Alexey Sokolov 7ac61474ed ZNC-Extra no more.
Few the most useless modules are just removed, the others are moved to
standard modules.
2012-02-21 19:34:36 +07:00
Kyle Fuller 8863d853c9 Allow disabling the use of adding networks for non admins
Closes #122
2012-02-15 16:27:47 +00:00
Kyle Fuller a206eb7488 identfile: Pause the connection queue while we have a locked file 2012-02-14 19:22:41 +00:00
Alexey Sokolov f4a80f7218 Fix/improve text in webadmin on how to connect to networks. 2012-02-13 10:16:16 +07:00
Kyle Fuller 0538140a97 webadmin: Tell the user how to connect to a network on the network page 2012-02-12 21:18:59 +00:00
Kyle Fuller b450fde4f6 autoop: Check for autoops when we are opped ourself #120 2012-02-09 19:32:07 +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 2a901da465 partyline: Use the clients nickname in the channel, not PREFIX+username
This means that every reference to my own user will instead show my
clients nickname. This will prevent the client from seeing itself, and
the real nick for your client in the channel.
2012-02-07 19:24:56 +00:00
Kyle Fuller 7f21e73d3d Kick all clients who are in partyline channels when the module is unloaded 2012-02-07 19:21:30 +00:00
Kyle Fuller 89543cefc3 partyline: RemoveUser should use the clients nickmask 2012-02-07 18:14:23 +00:00
Kyle Fuller 4f1fa01306 Allow connecting to partyline without a network
Fixes #74
2012-02-07 17:52:25 +00:00
Kyle Fuller 3c803441ea Use CModCommand in partyline 2012-02-07 17:09:06 +00:00
Kyle Fuller f706ac55c2 Display a 401 when a partyline user is not attached
Send private partyline messages to each client seperately using the
correct nickname for that client. It may differ if they are user clients
or network clients where they are not connected to an IRC server.

I have created macro's for the nickname prefix so this could easily be
changed.

Use 401 instead of 403 for user/channel not found

Fixes #21
2012-02-07 16:54:22 +00:00
Alexey Sokolov 259be0c174 Fix compilation of modpython.
After previous commit compiler.cpp depends on python headers, because it
includes them. Therefore g++ tries to write a depend file about them.
If there's no such dir .depend yet, it'll fail.

Thanks to SilverLeo for noticing this.
2012-02-05 23:50:49 +07:00
Alexey Sokolov be81853b24 Depend on changes of headers too, not only sources. 2012-02-05 17:24:14 +07: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 b966204456 Fix help of admin module.
DCCBindHost is string, not boolean.
2012-02-03 21:51:33 +07:00
Alexey Sokolov e0f4fad2ff Identfile: don't crash when ZNC is shutting down.
Thanks to Domin for reporting this.
2012-01-27 06:37:41 +07:00
Alexey Sokolov ea6993ec68 Hide new compilation warnings of modperl...
They appeared with yesterdays patch, which fixes few return values.
2012-01-23 19:13:23 +07:00
Alexey Sokolov 7b213ef462 Fix compilation of modperl...
It's dependency order was broken since I separated linking of modules
from compilation.
2012-01-23 19:09:24 +07:00
Alexey Sokolov 897806a84b Don't rebuild modules during make install. 2012-01-23 04:10:02 +07:00
Alexey Sokolov 00e26c8dbc Perl: fix several methods to return perl stuff instead of pointers. 2012-01-23 04:09:24 +07:00
Kyle Fuller 9a0af843b7 Make *raw a network module by default 2012-01-18 01:04:39 +00:00
Kyle Fuller b447169011 Allow setting a network-specific settings the same as the user setting
Fixes #94
2012-01-17 22:01:19 +00:00
Kyle Fuller c8f1a08b58 *admin: SetChan takes the network as an argument 2012-01-15 04:17:45 +00: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
Kyle Fuller 4abf3feae4 Remove trailing whitespace 2012-01-11 13:18:54 +00:00
Alexey Sokolov 1b7c9f4ed0 Make bouncedcc's description a bit shorter to fit in small tables better in output of *status. 2012-01-11 09:46:56 +07:00
TEP 9fdac9f37a Modified description field for bouncedcc module to explain what the module actually does. 2012-01-10 21:37:16 -05:00
Alexey Sokolov 8e558e83ab nickserv: support also wenet.ru's nickserv request. 2012-01-09 16:45:48 +07:00
Alexey Sokolov 9680b6a8eb Make autovoice a network module.
Thanks to nyuszika7h for suggestion.
2012-01-02 19:04:56 +07:00