summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/message.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.cpp b/src/message.cpp
index 6fef78552..c1c4faa3e 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -69,7 +69,7 @@ int common_channels(userrec *u, userrec *u2)
for (std::vector<ucrec*>::const_iterator i = u->chans.begin(); i != u->chans.end(); i++)
{
/* Fetch the channel from the user */
- ucrec* user_channel = (ucrec*)(*i);
+ ucrec* user_channel = *i;
if (user_channel->channel)
{