Inherits IRCDProto.

Public Member Functions | |
| UnrealIRCdProto (Module *creator) | |
Private Member Functions | |
| void | SendSVSNOOP (const Server *server, bool set) anope_override |
| void | SendAkillDel (const XLine *x) anope_override |
| void | SendTopic (BotInfo *whosets, Channel *c) anope_override |
| void | SendGlobalNotice (const BotInfo *bi, const Server *dest, const Anope::string &msg) anope_override |
| void | SendGlobalPrivmsg (const BotInfo *bi, const Server *dest, const Anope::string &msg) anope_override |
| void | SendVhostDel (User *u) anope_override |
| void | SendAkill (User *u, XLine *x) anope_override |
| void | SendSVSKillInternal (const BotInfo *source, User *user, const Anope::string &buf) anope_override |
| void | SendModeInternal (const BotInfo *bi, const User *u, const Anope::string &buf) anope_override |
| void | SendClientIntroduction (const User *u) anope_override |
| void | SendServer (const Server *server) anope_override |
| void | SendJoin (const User *user, Channel *c, const ChannelStatus *status) anope_override |
| void | SendSQLineDel (const XLine *x) anope_override |
| void | SendSQLine (User *, const XLine *x) anope_override |
| void | SendSVSO (const BotInfo *source, const Anope::string &nick, const Anope::string &flag) anope_override |
| void | SendVhost (User *u, const Anope::string &vIdent, const Anope::string &vhost) anope_override |
| void | SendConnect () anope_override |
| void | SendSVSHold (const Anope::string &nick) anope_override |
| void | SendSVSHoldDel (const Anope::string &nick) anope_override |
| void | SendSGLineDel (const XLine *x) anope_override |
| void | SendSZLineDel (const XLine *x) anope_override |
| void | SendSZLine (User *, const XLine *x) anope_override |
| void | SendSGLine (User *, const XLine *x) anope_override |
| void | SendSVSJoin (const BotInfo *source, const User *user, const Anope::string &chan, const Anope::string ¶m) anope_override |
| void | SendSVSPart (const BotInfo *source, const User *user, const Anope::string &chan, const Anope::string ¶m) anope_override |
| void | SendSWhois (const BotInfo *source, const Anope::string &who, const Anope::string &mask) anope_override |
| void | SendEOB () anope_override |
| bool | IsNickValid (const Anope::string &nick) anope_override |
| bool | IsChannelValid (const Anope::string &chan) anope_override |
| bool | IsExtbanValid (const Anope::string &mask) anope_override |
| void | SendLogin (User *u) anope_override |
| void | SendLogout (User *u) anope_override |
| void | SendChannel (Channel *c) anope_override |
Definition at line 16 of file unreal.cpp.
| UnrealIRCdProto::UnrealIRCdProto | ( | Module * | creator | ) | [inline] |
Definition at line 19 of file unreal.cpp.
References IRCDProto::CanSetVHost, IRCDProto::CanSetVIdent, IRCDProto::CanSNLine, IRCDProto::CanSQLine, IRCDProto::CanSVSHold, IRCDProto::CanSVSJoin, IRCDProto::CanSVSNick, IRCDProto::CanSVSO, IRCDProto::CanSZLine, IRCDProto::DefaultPseudoclientModes, and IRCDProto::MaxModes.
| bool UnrealIRCdProto::IsChannelValid | ( | const Anope::string & | chan | ) | [inline, private, virtual] |
Reimplemented from IRCDProto.
Definition at line 332 of file unreal.cpp.
References Anope::string::npos.
| bool UnrealIRCdProto::IsExtbanValid | ( | const Anope::string & | mask | ) | [inline, private, virtual] |
Reimplemented from IRCDProto.
Definition at line 340 of file unreal.cpp.
| bool UnrealIRCdProto::IsNickValid | ( | const Anope::string & | nick | ) | [inline, private, virtual] |
Reimplemented from IRCDProto.
Definition at line 324 of file unreal.cpp.
Sets an akill. This is a recursive function that can be called multiple times for the same xline, but for different users, if the xline is not one that can be enforced by the IRCd, such as a nick/user/host/realname combination ban.
| u | The user affected by the akill, if known | |
| x | The akill |
Implements IRCDProto.
Definition at line 84 of file unreal.cpp.
References XLineManager::AddXLine(), XLine::by, Anope::CurTime, XLine::expires, XLineManager::HasEntry(), XLine::id, IRCD, XLine::manager, XLine::mask, OperServ, XLine::reason, IRCDProto::SendSZLine(), and UserListByNick.
| void UnrealIRCdProto::SendAkillDel | ( | const XLine * | x | ) | [inline, private, virtual] |
Implements IRCDProto.
Definition at line 41 of file unreal.cpp.
References Config, IRCD, ServerConfig::OperServ, and IRCDProto::SendSZLineDel().
| void UnrealIRCdProto::SendChannel | ( | Channel * | c | ) | [inline, private, virtual] |
Send a channel creation message to the uplink. On most TS6 IRCds this is a SJOIN with no nick
Reimplemented from IRCDProto.
Definition at line 361 of file unreal.cpp.
References BotInfo::Join(), and BotInfo::Part().
| void UnrealIRCdProto::SendClientIntroduction | ( | const User * | u | ) | [inline, private, virtual] |
Introduces a client to the rest of the network
| u | The client to introduce |
Implements IRCDProto.
Definition at line 140 of file unreal.cpp.
| void UnrealIRCdProto::SendConnect | ( | ) | [inline, private, virtual] |
Used to introduce ourselves to our uplink. Usually will SendServer(Me) and any other initial handshake requirements.
Implements IRCDProto.
Definition at line 216 of file unreal.cpp.
References Config, Anope::CurrentUplink, Anope::string::empty(), Me, ServerConfig::Numeric, SendServer(), and ServerConfig::Uplinks.
| void UnrealIRCdProto::SendEOB | ( | ) | [inline, private, virtual] |
| void UnrealIRCdProto::SendGlobalNotice | ( | const BotInfo * | bi, | |
| const Server * | dest, | |||
| const Anope::string & | msg | |||
| ) | [inline, private, virtual] |
Implements IRCDProto.
Definition at line 66 of file unreal.cpp.
| void UnrealIRCdProto::SendGlobalPrivmsg | ( | const BotInfo * | bi, | |
| const Server * | dest, | |||
| const Anope::string & | msg | |||
| ) | [inline, private, virtual] |
Implements IRCDProto.
Definition at line 71 of file unreal.cpp.
| void UnrealIRCdProto::SendJoin | ( | const User * | u, | |
| Channel * | c, | |||
| const ChannelStatus * | status | |||
| ) | [inline, private, virtual] |
Joins one of our users to a channel.
| u | The user to join | |
| c | The channel to join the user to | |
| status | The status to set on the user after joining. This may or may not already internally be set on the user. This may include the modes in the join, but will usually place them on the mode stacker to be set "soon". |
Implements IRCDProto.
Definition at line 157 of file unreal.cpp.
References ModeManager::ChannelModes, BotInfo::Find(), Me, ChannelStatus::modes, and ChanUserContainer::status.
| void UnrealIRCdProto::SendLogin | ( | User * | u | ) | [inline, private, virtual] |
Implements IRCDProto.
Definition at line 345 of file unreal.cpp.
References User::Account(), Anope::string::c_str(), Servers::Capab, NickCore::display, IRCD, NickServ, IRCDProto::SendMode(), and User::signon.
| void UnrealIRCdProto::SendLogout | ( | User * | u | ) | [inline, private, virtual] |
Implements IRCDProto.
Definition at line 356 of file unreal.cpp.
References IRCD, NickServ, and IRCDProto::SendMode().
| void UnrealIRCdProto::SendModeInternal | ( | const BotInfo * | bi, | |
| const User * | u, | |||
| const Anope::string & | buf | |||
| ) | [inline, private, virtual] |
Implements IRCDProto.
Definition at line 135 of file unreal.cpp.
| void UnrealIRCdProto::SendServer | ( | const Server * | ) | [inline, private, virtual] |
Introduces a server to the uplink
Implements IRCDProto.
Definition at line 148 of file unreal.cpp.
References Config, Anope::string::empty(), and ServerConfig::Numeric.
Referenced by SendConnect().
Reimplemented from IRCDProto.
Definition at line 282 of file unreal.cpp.
References Anope::string::replace_all_cs().
| void UnrealIRCdProto::SendSGLineDel | ( | const XLine * | x | ) | [inline, private, virtual] |
Reimplemented from IRCDProto.
Definition at line 257 of file unreal.cpp.
Reimplemented from IRCDProto.
Definition at line 190 of file unreal.cpp.
| void UnrealIRCdProto::SendSQLineDel | ( | const XLine * | x | ) | [inline, private, virtual] |
Reimplemented from IRCDProto.
Definition at line 180 of file unreal.cpp.
| void UnrealIRCdProto::SendSVSHold | ( | const Anope::string & | nick | ) | [inline, private, virtual] |
Reimplemented from IRCDProto.
Definition at line 242 of file unreal.cpp.
References Config, Anope::CurTime, ServerConfig::NSReleaseTimeout, and ServerConfig::ServerName.
| void UnrealIRCdProto::SendSVSHoldDel | ( | const Anope::string & | nick | ) | [inline, private, virtual] |
Reimplemented from IRCDProto.
Definition at line 248 of file unreal.cpp.
References Config, and ServerConfig::ServerName.
| void UnrealIRCdProto::SendSVSJoin | ( | const BotInfo * | bi, | |
| const User * | u, | |||
| const Anope::string & | chan, | |||
| const Anope::string & | param | |||
| ) | [inline, private, virtual] |
Force joins a user that isn't ours to a channel.
| bi | The source of the message | |
| u | The user to join | |
| chan | The channel to join the user to | |
| param | Channel key? |
Reimplemented from IRCDProto.
Definition at line 298 of file unreal.cpp.
| void UnrealIRCdProto::SendSVSKillInternal | ( | const BotInfo * | source, | |
| User * | user, | |||
| const Anope::string & | buf | |||
| ) | [inline, private, virtual] |
Reimplemented from IRCDProto.
Definition at line 129 of file unreal.cpp.
References Server::GetName(), and Me.
| void UnrealIRCdProto::SendSVSNOOP | ( | const Server * | s, | |
| bool | mode | |||
| ) | [inline, private, virtual] |
Sets the server in NOOP mode. If NOOP mode is enabled, no users will be able to oper on the server.
| s | The server | |
| mode | Whether to turn NOOP on or off |
Reimplemented from IRCDProto.
Definition at line 36 of file unreal.cpp.
References Server::GetName().
| void UnrealIRCdProto::SendSVSO | ( | const BotInfo * | , | |
| const Anope::string & | , | |||
| const Anope::string & | ||||
| ) | [inline, private, virtual] |
Sets oper flags on a user, currently only supported by Unreal
Reimplemented from IRCDProto.
Definition at line 201 of file unreal.cpp.
| void UnrealIRCdProto::SendSVSPart | ( | const BotInfo * | bi, | |
| const User * | u, | |||
| const Anope::string & | chan, | |||
| const Anope::string & | param | |||
| ) | [inline, private, virtual] |
Force parts a user that isn't ours from a channel.
| bi | The source of the message | |
| u | The user to part | |
| chan | The channel to part the user from | |
| param | part reason, some IRCds don't support this |
Reimplemented from IRCDProto.
Definition at line 306 of file unreal.cpp.
| void UnrealIRCdProto::SendSWhois | ( | const BotInfo * | source, | |
| const Anope::string & | who, | |||
| const Anope::string & | mask | |||
| ) | [inline, private, virtual] |
Reimplemented from IRCDProto.
Definition at line 314 of file unreal.cpp.
| void UnrealIRCdProto::SendSZLineDel | ( | const XLine * | x | ) | [inline, private, virtual] |
Reimplemented from IRCDProto.
Definition at line 263 of file unreal.cpp.
References Config, and ServerConfig::OperServ.
Sets the topic on a channel
| bi | The bot to set the topic from | |
| c | The channel to set the topic on. The topic being set is Channel::topic |
Reimplemented from IRCDProto.
Definition at line 61 of file unreal.cpp.
| void UnrealIRCdProto::SendVhost | ( | User * | u, | |
| const Anope::string & | vident, | |||
| const Anope::string & | vhost | |||
| ) | [inline, private, virtual] |
Sets a vhost on a user.
| u | The user | |
| vident | The ident to set | |
| vhost | The vhost to set |
Reimplemented from IRCDProto.
Definition at line 208 of file unreal.cpp.
References Me.
| void UnrealIRCdProto::SendVhostDel | ( | User * | u | ) | [inline, private, virtual] |
Reimplemented from IRCDProto.
Definition at line 76 of file unreal.cpp.
References HostServ, and ModeManager::ProcessModes().
1.7.1