git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10083
e03df62e-2008-0410-955e-
edbf42e46eb7
virtual int OnChangeLocalUserGECOS(User* user, const std::string &newhost);
/** Called whenever a topic is changed by a local user.
- * Return 1 to deny the topic change, or 0 to allow it.
+ * Return 1 to deny the topic change, 0 to check details on the change, -1 to let it through with no checks
* @param user The user changing the topic
* @param chan The channels who's topic is being changed
* @param topic The actual topic text
/* 0: check status, 1: don't, -1: disallow change silently */
FOREACH_RESULT(I_OnLocalTopicChange,OnLocalTopicChange(u,this,ntopic));
- if (MOD_RESULT == -1)
+ if (MOD_RESULT == 1)
return CMD_FAILURE;
else if (MOD_RESULT == 0)
{