Commit Graph

2501 Commits

Author SHA1 Message Date
Kyle Fuller
8910ec5776 Allow the cert module to be loaded as a network module 2011-08-27 17:06:41 +00:00
Kyle Fuller
b2e6d09bbd Perform is now a network module, but could also be loaded as a user module if the user desires
perfom
2011-08-27 17:06:39 +00:00
Kyle Fuller
d3ffdbb2a6 Part the client from the channels they are in when they used /znc JumpNetwork 2011-08-25 21:17:39 +01:00
Kyle Fuller
b3b4e08769 Allow a user to add networks in znc --makeconfig 2011-08-25 21:17:38 +01:00
Kyle Fuller
260421e6e8 Make modpython support network modules 2011-08-25 21:17:28 +01:00
Kyle Fuller
9a2fed6923 Turn modtcl into a network module 2011-08-24 19:07:33 +01:00
Kyle Fuller
9b746dcc31 Change the order that modules are looked up in /msg *module
The new order is as follows:
    Network Module
    User Module
    Global Module
2011-08-24 19:07:33 +01:00
Kyle Fuller
0b1627c529 Make all the modules support networks 2011-08-24 19:07:32 +01:00
Kyle Fuller
ee7a2083c8 Make the *webadmin module support IRC networks 2011-08-24 19:07:32 +01:00
Kyle Fuller
0f9af26999 Support IRC networks in the *admin module 2011-08-24 19:07:32 +01:00
Kyle Fuller
e3a8dd9ce8 Add support for network commands with *status 2011-08-24 19:07:32 +01:00
Kyle Fuller
8dd2a704bb Create network modules 2011-08-24 19:07:32 +01:00
Kyle Fuller
498cbf8a1e Make CNick network aware 2011-08-24 19:07:32 +01:00
Kyle Fuller
da6c601e57 Make IRCSock network aware 2011-08-24 19:07:32 +01:00
Kyle Fuller
ef2b2cf601 Make CClient network aware 2011-08-24 19:07:31 +01:00
Kyle Fuller
4e4e88e8fc CChans should now work on IRC networks 2011-08-24 19:07:31 +01:00
Kyle Fuller
fec1a3fe91 Add CIRCNetwork which now hold each IRC Connection.
This allows a user to have multiple networks.

A user can login as a network by supplying PASS [user[/network]:]pass or
USER user[/network] on connect. A user can also switch between networks
by using /msg *status JumpNetwork <network>
2011-08-24 19:07:26 +01:00
Alexey Sokolov
88033a5b3e Save listeners as a section in znc.conf 2011-08-22 03:05:11 +07:00
Alexey Sokolov
d2b005aaf8 Add an easy way to read bools and ints from config. 2011-08-22 03:02:15 +07:00
Alexey Sokolov
afbd7410b1 Fix doxycomment about global mobules. 2011-08-22 00:56:56 +07:00
Alexey Sokolov
fca0d83de8 Fix modpython about renaming EModuleType. 2011-08-22 00:55:45 +07:00
Uli Schlachter
288f450ea7 Save passwords as a section in znc.conf
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-21 18:01:58 +02:00
Uli Schlachter
2513149b42 Fix up indentation in config writing
This accidentally caused null bytes to be written to the config.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-21 18:01:58 +02:00
Uli Schlachter
26368a6c29 Some more cleanup to module loading
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-21 18:01:58 +02:00
Uli Schlachter
80c76c97a6 Remove GLOBALMODCONSTRUCTOR
MODCONSTRUCTOR does that job just fine (now).

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-21 18:01:58 +02:00
Alexey Sokolov
c2cc57cbf4 Fix compilation of modpython. 2011-08-21 21:51:28 +07:00
Alexey Sokolov
b62c47c86e Add new parameter of OnModuleLoading to doxygen. 2011-08-21 21:51:11 +07:00
Uli Schlachter
cce40e9f71 Move the EModuleType into CModInfo
This also renames the values to shorter and more "well sounding" names.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-21 16:30:36 +02:00
Uli Schlachter
5f53c3509f Fix some minor issues
E.g. a gcc warning about an uninitialized variable.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-21 15:58:01 +02:00
Kyle Fuller
f44f307b24 Add a config writer 2011-08-21 13:40:14 +01:00
Kyle Fuller
274d3eb2ec Make modpython support different module types 2011-08-21 13:34:23 +01:00
Alexey Sokolov
9e33e4bf59 Fix dependencies between modpython parts. 2011-08-21 13:34:23 +01:00
Alexey Sokolov
289cfa5eff Fix enum handling in modpython callbacks params. 2011-08-21 13:34:23 +01:00
Kyle Fuller
b2d8f2ed62 Add CModInfo::SupportsType(EModuleType) and supply a module type with CModules::LoadModule
This would allow a module support multiple module types but CModule's do
not support this currently
2011-08-21 13:34:23 +01:00
Alexey Sokolov
0c9eae226e Fix global python modules. 2011-08-21 13:34:23 +01:00
Alexey Sokolov
76aaafd4d0 Unload modules in reverse order. 2011-08-21 13:34:23 +01:00
Kyle Fuller
c456d20b21 Merge CGlobalModule(s) into CModule(s) 2011-08-21 13:34:22 +01:00
Kyle Fuller
a4b155995c Create EModuleType, creating SetType which replaces SetGlobal 2011-08-21 13:34:22 +01:00
Uli Schlachter
091a2875ad Increase the version number to 0.201
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-20 22:35:14 +02:00
Uli Schlachter
d91803bf22 Increase the version number to 0.200
Signed-off-by: Uli Schlachter <psychon@znc.in>
znc-0.200
2011-08-20 22:33:15 +02:00
Kyle Fuller
6aa31689ac [cert module] Allow \r\n to be inside a certificate when uploading with the web interface.
Thanks to Robby for reporting
2011-08-16 22:19:43 +01:00
Kyle Fuller
74919a8759 Fix uploading a certificate in the web interface for the cert module 2011-08-16 20:38:51 +01:00
Uli Schlachter
8f53d3fbb0 Fix modp{erl,ython} installation
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-06 10:43:39 +02:00
Kyle Fuller
e86ff3219d Fix module data for extra/ modules for real 2011-08-05 22:16:21 +01:00
Uli Schlachter
da0ba75549 Fix CString::Escape_n() and add some tests for it
This bug was originally reported by someone on irc, but sadly I forgot who it
was. Sorry!

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-05 16:09:22 +02:00
Uli Schlachter
cb6798d36f Fix module data for extra/ modules
No module in extra/ comes with any data currently, so this was tested by moving
perform to extra/. The install is untested.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-05 15:19:09 +02:00
Uli Schlachter
8d17f50600 Include zncconfig.h in all headers
The rule is that zncconfig.h must be the very same thing that is included. We
cheat and only include it in headers (so that modules dont have to have be
changed). However, it looks like some modules where missed.

This commit fixes test/ConfigTest which crashed if _GLIBCXX_DEBUG was enabled
(--enable-debug) because it didn't see this define before including a c++
header.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-05 15:02:04 +02:00
Uli Schlachter
dcf357b1f6 Stop asking for the host name in --makepem
Come on, it's a self-signed certificate, how much value does it have anyway?
Also, it gets rid of a question during --makeconf which confuses some people.

This should now use $HOSTNAME and fall back to "host.unknown" if that isn't set.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-03 22:05:21 +02:00
Kyle Fuller
90f741d2ca Make the CUser::IsIRCConnected method check if the IRC connection is authed because may of its callers expect this behaviour.
This fixes a bug reported by Robby where a channel could become disabled while a the user is connected to irc, but before they have authenticated.
2011-07-29 19:21:25 +01:00
Uli Schlachter
9685f16b96 Fix a memleak in CChan::AddNick()
This memleak existed since 5e070e788 from almost a year ago.

Thanks to Olipro for reporting this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-07-27 15:14:01 +02:00