*/
#include "inspircd.h"
-#include "xline.h"
-#include "socketengine.h"
-#include "socket.h"
-#include "command_parse.h"
-#include "exitcodes.h"
-
-/* Directory Searching for Unix-Only */
-#ifndef WIN32
-#include <dirent.h>
-#include <dlfcn.h>
-#endif
int InspIRCd::PassCompare(Extensible* ex, const std::string &data, const std::string &input, const std::string &hashtype)
{
/* Modify the user's penalty regardless of whether or not the command exists */
bool do_more = true;
- if (IS_LOCAL(user) && !user->HasPrivPermission("users/flood/no-throttle"))
+ if (!user->HasPrivPermission("users/flood/no-throttle"))
{
// If it *doesn't* exist, give it a slightly heftier penalty than normal to deter flooding us crap
- IS_LOCAL(user)->CommandFloodPenalty += cm != cmdlist.end() ? cm->second->Penalty * 1000 : 2000;
+ user->CommandFloodPenalty += cm != cmdlist.end() ? cm->second->Penalty * 1000 : 2000;
}
Version GetVersion()
{
- return Version("Extban 'j' - channel status/join ban", VF_COMMON|VF_VENDOR);
+ return Version("Extban 'j' - channel status/join ban", VF_OPTCOMMON|VF_VENDOR);
}
ModResult OnCheckBan(User *user, Channel *c, const std::string& mask)
Version GetVersion()
{
- return Version("Custom Title for users", VF_COMMON | VF_VENDOR);
+ return Version("Custom Title for users", VF_OPTCOMMON | VF_VENDOR);
}
};
Version GetVersion()
{
- return Version("Extban 'r' - realname (gecos) ban", VF_COMMON|VF_VENDOR);
+ return Version("Extban 'r' - realname (gecos) ban", VF_OPTCOMMON|VF_VENDOR);
}
ModResult OnCheckBan(User *user, Channel *c, const std::string& mask)
line = line + parameters[i] + " ";
}
ServerInstance->SNO->WriteToSnoMask('g',line);
+ ServerInstance->PI->SendSNONotice("g", line);
- /* route it (ofc :p) */
return CMD_SUCCESS;
}
-
- RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters)
- {
- return ROUTE_BROADCAST;
- }
};
class ModuleGlobops : public Module
virtual Version GetVersion()
{
- return Version("Provides support for GLOBOPS and user mode +g", VF_COMMON | VF_VENDOR);
+ return Version("Provides support for GLOBOPS and user mode +g", VF_OPTCOMMON | VF_VENDOR);
}
};
RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters)
{
- return ROUTE_BROADCAST;
+ return ROUTE_OPT_BCAST;
}
};
virtual Version GetVersion()
{
- return Version("Provides support for /KNOCK and mode +K", VF_COMMON | VF_VENDOR);
+ return Version("Provides support for /KNOCK and mode +K", VF_OPTCOMMON | VF_VENDOR);
}
};
virtual Version GetVersion()
{
- return Version("Implements extban +b m: - mute bans",VF_COMMON|VF_VENDOR);
+ return Version("Implements extban +b m: - mute bans",VF_OPTCOMMON|VF_VENDOR);
}
virtual ModResult OnUserPreMessage(User *user, void *dest, int target_type, std::string &text, char status, CUList &exempt_list)
virtual Version GetVersion()
{
- return Version("Implements extban +b p: - part message bans", VF_COMMON|VF_VENDOR);
+ return Version("Implements extban +b p: - part message bans", VF_OPTCOMMON|VF_VENDOR);
}
Version GetVersion()
{
- return Version("Extban 's' - server ban",VF_COMMON|VF_VENDOR);
+ return Version("Extban 's' - server ban",VF_OPTCOMMON|VF_VENDOR);
}
ModResult OnCheckBan(User *user, Channel *c, const std::string& mask)
Version GetVersion()
{
- return Version("Povides support for ircu-style services accounts, including chmode +R, etc.",VF_COMMON|VF_VENDOR);
+ return Version("Povides support for ircu-style services accounts, including chmode +R, etc.",VF_OPTCOMMON|VF_VENDOR);
}
};
"m_censor.so",
"m_chanfilter.so",
"m_chanhistory.so",
+ "m_channelban.so",
"m_chanprotect.so",
"m_chghost.so",
"m_chgname.so",
"m_commonchans.so",
+ "m_customtitle.so",
"m_deaf.so",
"m_delayjoin.so",
"m_delaymsg.so",
"m_exemptchanops.so",
+ "m_gecosban.so",
+ "m_globops.so",
"m_helpop.so",
"m_hidechans.so",
"m_hideoper.so",
"m_inviteexception.so",
"m_joinflood.so",
"m_kicknorejoin.so",
+ "m_knock.so",
"m_messageflood.so",
+ "m_muteban.so",
"m_nickflood.so",
"m_nicklock.so",
"m_noctcp.so",
"m_nokicks.so",
"m_nonicks.so",
"m_nonotice.so",
+ "m_nopartmsg.so",
"m_ojoin.so",
"m_operprefix.so",
"m_permchannels.so",
"m_sanick.so",
"m_sapart.so",
"m_saquit.so",
+ "m_serverban.so",
+ "m_services_account.so",
"m_servprotect.so",
"m_setident.so",
"m_showwhois.so",
"m_sslmodes.so",
"m_stripcolor.so",
"m_swhois.so",
+ "m_uninvite.so",
"m_watch.so"
};
RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters)
{
User* u = ServerInstance->FindNick(parameters[0]);
- return u ? ROUTE_UNICAST(u->server) : ROUTE_LOCALONLY;
+ return u ? ROUTE_OPT_UCAST(u->server) : ROUTE_LOCALONLY;
}
};
virtual Version GetVersion()
{
- return Version("Provides the UNINVITE command which lets users un-invite other users from channels", VF_VENDOR | VF_COMMON);
+ return Version("Provides the UNINVITE command which lets users un-invite other users from channels", VF_VENDOR | VF_OPTCOMMON);
}
};