summaryrefslogtreecommitdiff
path: root/include/inspircd.h
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-06-02 00:28:55 +0200
committerattilamolnar <attilamolnar@hush.com>2013-06-02 00:28:55 +0200
commitb01dc3cb865c2faacfa69f6a081117bf349c6f40 (patch)
tree085867c898f36c12260a5933b74df1b11a623363 /include/inspircd.h
parent3e704abc5af27cc6d8d3e5e720d2fe497b423417 (diff)
Move a few trivial functions into headers
Diffstat (limited to 'include/inspircd.h')
-rw-r--r--include/inspircd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 6e75cc9a8..957032da2 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -537,7 +537,7 @@ class CoreExport InspIRCd
/** Return a count of channels on the network
* @return The number of channels
*/
- long ChannelCount();
+ long ChannelCount() const { return chanlist->size(); }
/** Send an error notice to all local users, opered and unopered
* @param s The error string to send
@@ -774,3 +774,8 @@ class CommandModule : public Module
return Version(cmd.name, VF_VENDOR|VF_CORE);
}
};
+
+inline void InspIRCd::SendMode(const std::vector<std::string>& parameters, User* user)
+{
+ this->Modes->Process(parameters, user);
+}