summaryrefslogtreecommitdiff
path: root/src/modules/m_dccallow.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-20 07:55:08 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-20 07:55:08 +0000
commit9ede59892d06b57dea0c9ef90dd88062417b0202 (patch)
tree2ccdc38aea544cad41352bc724fd00988f1bf098 /src/modules/m_dccallow.cpp
parent7f9c6c5118261eac40d9bae22ac2c0ede670512d (diff)
Const refs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5505 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_dccallow.cpp')
-rw-r--r--src/modules/m_dccallow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp
index 1b14d098e..5fb64a27e 100644
--- a/src/modules/m_dccallow.cpp
+++ b/src/modules/m_dccallow.cpp
@@ -31,7 +31,7 @@ class DCCAllow
DCCAllow() { }
- DCCAllow(std::string nick, std::string hm, time_t so, long ln) : nickname(nick), hostmask(hm), set_on(so), length(ln) { }
+ DCCAllow(const std::string &nick, const std::string &hm, const time_t so, const long ln) : nickname(nick), hostmask(hm), set_on(so), length(ln) { }
};
typedef std::vector<userrec *> userlist;
@@ -132,7 +132,7 @@ class cmd_dccallow : public command_t
if (!dl)
{
dl = new dccallowlist;
- user->Extend(std::string("dccallow_list"), dl);
+ user->Extend("dccallow_list", dl);
// add this user to the userlist
ul.push_back(user);
}