Commit Graph

2780 Commits

Author SHA1 Message Date
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
819776873d Add SSL/IPv6/DNS info to znc --version 2012-03-15 01:38:37 +07: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
Alexey Sokolov
ddb1af86fd Ask for port > 1024 in --makeconf
There're so many people who try lower ports and get permission denied :(
Who really wants to use privileged port, can add it using /znc addport
2012-03-10 08:24:19 +07:00
Kyle Fuller
aa9a629bf3 CString("off").ToBool() shouldn't be true 2012-03-06 18:00:43 +00:00
Kyle Fuller
f44b7fc7c4 Clear channel buffers if keep buffer is disabled and we're online 2012-03-06 17:55:14 +00: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
c328692ed7 c-ares is no longer a optional dependency 2012-02-25 17:18:44 +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
34d0da2097 Make sources to depend on headers again.
Wrong dependency Makefiles were generated since moving core to src/
2012-02-21 19:40:29 +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
fc8e789b08 Don't show network modules title if we don't have any network modules 2012-02-19 18:44:54 +00:00
Kyle Fuller
11e5f7636d Add 381 to the buffer (You are now an IRC Operator) 2012-02-19 14:39:03 +00:00
Uli Schlachter
1dd8d9bf3e Block all signals in DNS threads
A DNS thread should never handle any kind of signal. The main thread is
responsible for handling signals and it does so without any kind of locking.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-02-19 12:26:19 +01:00
Uli Schlachter
252e6d7151 Threaded DNS: Handle spurious wakeups
As DarthGandalf noticed, POSIX allows spurious wakeups from pthread_cond_wait.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-02-19 12:13:25 +01: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
b9ff3ddcb1 The connect queue shouldn't be unpaused when ZNC starts 2012-02-14 19:34:02 +00:00
Kyle Fuller
59ad967d77 Merge branch 'queue' 2012-02-14 19:32:03 +00:00
Uli Schlachter
0bdb18a427 Threaded DNS: Use a thread pool
When a DNS thread is done with its lookup, instead of existing immediately, it
now waits for another DNS lookup to do instead. This avoids the cost of
starting/stopping threads all the time.

To make sure that (for whatever reason) the number of waiting threads doesn't
get too high, threads exit if there are more than two DNS threads idling around
with nothing to do.

Fixes #132.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-02-14 20:28:28 +01:00
Kyle Fuller
30fb68023b Pause connect queue should pause and resume a timer
So we don't cheat the connect delay
2012-02-14 19:22:50 +00:00
Kyle Fuller
a206eb7488 identfile: Pause the connection queue while we have a locked file 2012-02-14 19:22:41 +00:00
Kyle Fuller
e47f76db6c Allow the connection queue to be paused 2012-02-14 19:22:33 +00:00
Kyle Fuller
ec1202daf3 {unload,reload}mod: Don't get modinfo if the type is defined
This allows us to unload a module if we supply the type and mod info
cannot be loaded (such as if the module file has been moved).
2012-02-14 12:10:07 +00:00
Kyle Fuller
e08d53dcd5 Show network modules on the web interface menu
Closes #121
2012-02-13 23:58:32 +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
5c844cf81a Send nick changes to clients before we use call the OnNick module hook
This fixes a bug where sending anything to a client, such as with
PutModule will fail because it will refer to the new nick before the
client knows about it. The watch module did this.
2012-02-12 20:07:57 +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
b1593238d5 Make the URL's for web modules include the module type (#121) 2012-02-09 14:19:26 +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
Uli Schlachter
ec3317a8e5 Merge branch 'debug_timestamps' of ssh://github.com/HaleBob/znc 2012-02-05 21:18:39 +01:00
Alexey Sokolov
0da04f75d6 Remove my site from AUTHORS.
It's down anyway.
2012-02-06 01:09:18 +07: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
silverleo
bb666b0ab7 Fix an Unrecoverable config error issue when reading from an old config.
Default this boolean to true incase there are no networks to loop over. This
will silently drop any network modules for the user, but since there are no
networks anyway it doesn't really matter.
2012-02-05 16:45:00 +02:00
Alexey Sokolov
47c427c39d Merge branch 'master' of github.com:znc/znc 2012-02-05 17:44:31 +07:00
Alexey Sokolov
94f785948b Check that modules are in place on start.
There're many people who forget to run "make install" and then wonder
why they can't load any module.

This should fix it, hopefully.
2012-02-05 17:41:40 +07:00
Alexey Sokolov
be81853b24 Depend on changes of headers too, not only sources. 2012-02-05 17:24:14 +07:00