1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 03:03:14 +02:00

More properly track topic change sources and allow users with access to change topics through topiclock

This commit is contained in:
Adam
2015-01-28 22:57:15 -05:00
parent 2264a206d2
commit 845ca576b4
14 changed files with 27 additions and 31 deletions
+4 -4
View File
@@ -257,7 +257,7 @@ struct IRCDMessageChaninfo : IRCDMessage
if (params.size() == 3)
{
c->ChangeTopicInternal(source.GetName(), params[2], Anope::CurTime);
c->ChangeTopicInternal(NULL, source.GetName(), params[2], Anope::CurTime);
}
else if (params.size() == 5)
{
@@ -271,9 +271,9 @@ struct IRCDMessageChaninfo : IRCDMessage
case 'l':
modes += " " + params[3];
continue;
}
}
}
c->ChangeTopicInternal(source.GetName(), params[4], Anope::CurTime);
c->ChangeTopicInternal(NULL, source.GetName(), params[4], Anope::CurTime);
}
c->SetModesInternal(source, modes);
@@ -590,7 +590,7 @@ struct IRCDMessageTopic : IRCDMessage
Log(LOG_DEBUG) << "TOPIC for nonexistant channel " << params[0];
return;
}
c->ChangeTopicInternal(source.GetName(), params[1], Anope::CurTime);
c->ChangeTopicInternal(source.GetUser(), source.GetName(), params[1], Anope::CurTime);
}
};