Alexey Sokolov
f483053687
Improve admin module description.
2011-10-06 21:47:52 +07:00
Alexey Sokolov
e354c24ac1
Move ZNC headers into own directory.
...
Yes, this breaks backwards compatibility, so what?
It's already broken with network stuff anyway.
2011-09-23 03:31:58 +07:00
Uli Schlachter
ce5d73c9cd
admin: Fix getchan {inconfig,keepbuffer,detached}
...
Instead of giving a useful result, they returned their result by sometimes
omitting the first character of the option name. Whoops.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2011-09-02 18:21:50 +02:00
Kyle Fuller
0f9af26999
Support IRC networks in the *admin module
2011-08-24 19:07:32 +01: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
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
262216731b
Add link to wiki page from any nonextra module.
2011-06-11 18:09:56 +07:00
Kyle Fuller
8f508cb4a5
Migrate dcc bouncing to its own module
2011-06-01 20:21:27 +01:00
Kyle Fuller
611e086cbf
Rename "str" to "String" in the admin panel.
...
This was accidentally renamed in abed808121 .
2011-05-31 02:00:23 +01:00
Kyle Fuller
abed808121
Rename a variable from 'string' to 'str' because 'string' shadows a global declaration
2011-05-25 16:48:02 +01:00
Uli Schlachter
d44e590336
Make CUser::m_sUserName constant
...
Changing the user name for a CUser instance is a really, really bad idea. There
are lots of paths that depend on the user name and only few of them are fixed up
when the user name changes.
This fixes a problem where admin's "CloneUser from to" caused problems with
modules, because all modules where loaded under the old user name and thus they
read/write NV data from the wrong directory in ~/.znc/users.
Thanks to un1matr1x for reporting this.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2011-02-24 19:13:06 +01:00
Uli Schlachter
31bbffa579
Convert admin to the new CModCommand interface
...
Signed-off-by: Uli Schlachter <psychon@znc.in >
2011-02-21 15:34:28 +01:00
Uli Schlachter
4faad67f81
admin: Allow omitting of the user name with some commands
...
This changes admin to assume that an "empty username" was specified if some
arguments is empty which shouldn't be empty. This empty username is then
interpreted as meaning the current user.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2011-02-18 14:50:12 +01:00
Uli Schlachter
3f0e200073
Admin: Add functions for listing/adding/removing CTCP replies
...
Signed-off-by: Uli Schlachter <psychon@znc.in >
2011-02-18 14:50:12 +01:00
flakes
65ae83fa19
Admin module: Added /msg *admin reconnect <user> and /msg *admin disconnect <user> commands. Can someone test this? :P
2011-02-13 14:19:27 +01:00
silverleo
ad9667dd3e
Fix the IsAdmin checks for the SetBufferCount
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2276 726aef4b-f618-498e-8847-2d620e286838
2011-02-02 13:14:22 +00:00
psychon
b9b0fd4c87
Oh, shiny... NOT
...
(Yes, it's that time of the year again)
Signed-off-by: Uli Schlachter <psychon@znc.in >
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2260 726aef4b-f618-498e-8847-2d620e286838
2011-01-14 17:03:24 +00:00
psychon
853ddc5c2a
admin: Add TimestampFormat and StatusPrefix
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2225 726aef4b-f618-498e-8847-2d620e286838
2010-12-31 08:07:39 +00:00
psychon
ed924cb9e5
admin: Properly report errors in "addserver"
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2172 726aef4b-f618-498e-8847-2d620e286838
2010-11-06 15:51:58 +00:00
psychon
341263f9ec
Rename "vhost" to "bindhost"
...
"virtual host" seems to be confusing to users since they wonder why
i.am.superman doesn't work. Let's rename this to "bindhost" and perhaps it
becomes clearer what this setting does.
Thanks to SilverLeo!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2113 726aef4b-f618-498e-8847-2d620e286838
2010-08-30 08:58:29 +00:00
psychon
f7c6d90478
Fix a help message
...
Patch by DarthGandalf, thanks.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2090 726aef4b-f618-498e-8847-2d620e286838
2010-07-20 17:31:17 +00:00
psychon
e62ca4112d
Add new global setting MaxBufferSize
...
Previously, /znc setbuffer had a hardcoded limit of 500, other ways of setting
the buffer size didn't have any limit built-in.
This patch makes that limit configurable and makes sure the various places
honour it.
Thanks to DarthGandalf for the idea with the bForce argument, I were too
small-minded to come up with it myself. :(
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2020 726aef4b-f618-498e-8847-2d620e286838
2010-06-12 20:20:33 +00:00
cflakes
88f2d64ee1
Removed unnecessary argument from admin.cpp. LoadModule(..., bFake = false) is the default.
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2004 726aef4b-f618-498e-8847-2d620e286838
2010-05-22 10:34:11 +00:00
psychon
99f1efc843
Some more fun with tabs
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1966 726aef4b-f618-498e-8847-2d620e286838
2010-05-02 08:36:57 +00:00
cflakes
7748713afd
Added ability to change the TimezoneOffset setting
...
from the admin module. Patch by BrianC, thanks!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1906 726aef4b-f618-498e-8847-2d620e286838
2010-04-12 15:31:42 +00:00
cflakes
8575a6eae4
Add missing DenyLoadMod check in admin.cpp, following
...
up revision 1845. Patch by Nirjen, thanks again!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1864 726aef4b-f618-498e-8847-2d620e286838
2010-03-31 21:41:30 +00:00
cflakes
b3b937fa2d
Fix admin.cpp. Search and replace isn't what it used to be.
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1847 726aef4b-f618-498e-8847-2d620e286838
2010-03-28 21:06:40 +00:00
cflakes
263d596379
Fix whitespace and general cleanup for admin.cpp. Let's hope this doesn't break anything. :P
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1846 726aef4b-f618-498e-8847-2d620e286838
2010-03-28 21:04:25 +00:00
cflakes
5afb3097a5
Add LoadModule, UnLoadModule, ListMods commands to the admin module.
...
This means that admins can now load user modules for other users.
Patch by Nirjen. Thanks, great job!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1845 726aef4b-f618-498e-8847-2d620e286838
2010-03-28 20:37:48 +00:00
psychon
1d88f564dc
Fix a bunch of style suggestions from cppcheck[1]
...
Thanks to DarthGandalf for this patch. You must be bored. :P
[1] cppcheck.sf.net
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1776 726aef4b-f618-498e-8847-2d620e286838
2010-02-19 16:21:07 +00:00
cflakes
7bb6c2ad7a
AppendTimestamp, PreprendTimestamp, DCCVHost and DenySetVHost (also affects DCCVHost) are now also changable via the admin module. Basic patch by psychon!
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1747 726aef4b-f618-498e-8847-2d620e286838
2010-02-07 18:21:48 +00:00
cflakes
82cf73d5c6
Removed an unnecessary exclamation mark from the admin module.
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1746 726aef4b-f618-498e-8847-2d620e286838
2010-02-07 18:02:32 +00:00
cflakes
f5848f5176
Added support for changing the "IsAdmin" flag to the admin module.
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1745 726aef4b-f618-498e-8847-2d620e286838
2010-02-07 18:01:42 +00:00
cflakes
fe55984467
Added support for the MaxJoins and JoinTries variables to the admin module.
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1744 726aef4b-f618-498e-8847-2d620e286838
2010-02-07 17:52:42 +00:00
cflakes
4759c75a2f
Added missing IsAdmin checks to the admin module. DenyLoadMod and DenySetVHost are now properly adhered to.
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1743 726aef4b-f618-498e-8847-2d620e286838
2010-02-07 17:45:20 +00:00
silverleo
07d7477dec
It's 2010, where's my hoverboard?
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1693 726aef4b-f618-498e-8847-2d620e286838
2010-01-06 09:37:05 +00:00
psychon
606fdaf166
admin: Disable ConnectEnabled() for cloned users
...
If you know clone a user through admin's clone command, that user won't connect
to irc. When the new user first logs in he will be told to use '/msg *status
connect'.
Thanks to BLG and KiNgMaR for the idea and the 'patch'.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1653 726aef4b-f618-498e-8847-2d620e286838
2009-10-20 16:59:40 +00:00
sebastinas
6efff7c402
admin: Fix the output of "help".
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1633 726aef4b-f618-498e-8847-2d620e286838
2009-09-24 10:24:17 +00:00
psychon
a190d97cae
admin: Fix the help for "setchan"
...
Thanks to flakes.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1632 726aef4b-f618-498e-8847-2d620e286838
2009-09-24 10:20:23 +00:00
psychon
cd63bae006
Add sha256 support
...
This imports the sha256 code from http://www.ouah.org/ogay/sha2/ (The other
hashes from sha-2 were removed). sha256 is a much stronger hashing algorithm
than md5 is (There were successful birthday attacks against md5).
All the code now defaults to creating sha256 salted hashes (The salting used is
the same as before).
Old znc.conf files can still be read.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1618 726aef4b-f618-498e-8847-2d620e286838
2009-09-07 18:55:07 +00:00
sebastinas
af13278f4f
made string, boolean and integer static
...
Made string, boolean and integer in PrintHelp static sinve vars
is static too.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1542 726aef4b-f618-498e-8847-2d620e286838
2009-06-10 19:16:20 +00:00
psychon
220aab468d
admin: Require a username argument
...
This patch makes set, setchan and addserver require a username argument.
(One can just use $me)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1541 726aef4b-f618-498e-8847-2d620e286838
2009-06-10 14:41:50 +00:00
psychon
87a7672638
I fail (fix the admin module)
...
Thanks SilverLeo :(
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1540 726aef4b-f618-498e-8847-2d620e286838
2009-06-10 12:21:37 +00:00
psychon
062989595c
Admin: Some minor cleanup
...
Move some code from GetUser()'s callers into GetUser() itself.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1539 726aef4b-f618-498e-8847-2d620e286838
2009-06-10 11:40:14 +00:00
psychon
2206e19ad2
admin: Add set/get Nick/Altnick to help
...
Dunno why these commands weren't documented before...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1535 726aef4b-f618-498e-8847-2d620e286838
2009-06-06 18:09:07 +00:00
psychon
02d6546a0b
Add support for per-channel settings to admin
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1484 726aef4b-f618-498e-8847-2d620e286838
2009-04-07 11:38:17 +00:00
psychon
694b60d53b
Admin: Use CString's constructor instead of reinventing the wheel
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1480 726aef4b-f618-498e-8847-2d620e286838
2009-04-06 06:45:19 +00:00
psychon
c80690a9fc
admin: DelUser can now handle spaces in user names
...
The new CloneUser command allows one to create a user with a space in
its name and the code for reading znc.conf allows spaces too. So now
one can even get rid of this users again...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1478 726aef4b-f618-498e-8847-2d620e286838
2009-04-04 18:43:24 +00:00
psychon
5618aa2a47
admin: Add a CloneUser command
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1477 726aef4b-f618-498e-8847-2d620e286838
2009-04-04 18:41:14 +00:00
sebastinas
dcc49f9c6f
Admin module: some cosmetic fixes
...
Use ToUInt to convert the string, since we're actually using an
unsigned integer. And use ToBool for consistency.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1440 726aef4b-f618-498e-8847-2d620e286838
2009-03-23 20:43:11 +00:00