summaryrefslogtreecommitdiff
path: root/src/core/os_mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/os_mode.c')
-rw-r--r--src/core/os_mode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/os_mode.c b/src/core/os_mode.c
index aac4e1518..955601336 100644
--- a/src/core/os_mode.c
+++ b/src/core/os_mode.c
@@ -22,7 +22,7 @@ class CommandOSMode : public Command
{
}
- CommandReturn Execute(User *u, std::vector<std::string> &params)
+ CommandReturn Execute(User *u, std::vector<ci::string> &params)
{
int ac;
const char **av;
@@ -37,7 +37,7 @@ class CommandOSMode : public Command
{
ircdproto->SendMode(findbot(s_OperServ), chan, "%s", modes);
- ac = split_buf((char *)modes, &av, 1);
+ ac = split_buf(const_cast<char *>(modes), /* XXX */ &av, 1);
chan_set_modes(s_OperServ, c, ac, av, -1);
free(av);