mirror of
https://github.com/anope/anope.git
synced 2026-07-10 01:43:13 +02:00
BUILD : 1.7.8 (758) BUGS : 332 NOTES : FIXED: anope_event_away() doing dangerous things with ac/av, viagra had issues in notice_ops, anope_cmd_mode() used wrongly for dreamforge and ultimate2
git-svn-id: svn://svn.anope.org/anope/trunk@758 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@520 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
7a1d87fd7b
commit
22bf8b43b8
@@ -155,9 +155,13 @@ void solidircd_set_umode(User * user, int ac, char **av)
|
||||
|
||||
while (*modes) {
|
||||
|
||||
add ? (user->mode |= umodes[(int) *modes]) : (user->mode &=
|
||||
~umodes[(int)
|
||||
*modes]);
|
||||
/* This looks better, much better than "add ? (do_add) : (do_remove)".
|
||||
* At least this is readable without paying much attention :) -GD
|
||||
*/
|
||||
if (add)
|
||||
user->mode |= umodes[(int) *modes];
|
||||
else
|
||||
user->mode &= ~umodes[(int) *modes];
|
||||
|
||||
switch (*modes++) {
|
||||
case '+':
|
||||
@@ -1301,15 +1305,11 @@ void solidircd_cmd_quit(char *source, char *buf)
|
||||
|
||||
int anope_event_away(char *source, int ac, char **av)
|
||||
{
|
||||
if (ac) {
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
if (!source) {
|
||||
return MOD_CONT;
|
||||
}
|
||||
m_away(source, av[0]);
|
||||
return MOD_CONT;
|
||||
m_away(source, (ac ? av[0] : NULL));
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
int anope_event_ping(char *source, int ac, char **av)
|
||||
|
||||
Reference in New Issue
Block a user