"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/m_svstag.c" between
ircd-hybrid-8.2.27.tgz and ircd-hybrid-8.2.28.tgz

About: IRCD-Hybrid is a Internet Relay Chat server.

m_svstag.c  (ircd-hybrid-8.2.27.tgz):m_svstag.c  (ircd-hybrid-8.2.28.tgz)
skipping to change at line 24 skipping to change at line 24
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
* USA * USA
*/ */
/*! \file m_svstag.c /*! \file m_svstag.c
* \brief Includes required functions for processing the SVSTAG command. * \brief Includes required functions for processing the SVSTAG command.
* \version $Id: m_svstag.c 9102 2020-01-01 09:58:57Z michael $ * \version $Id: m_svstag.c 9199 2020-01-23 17:49:06Z michael $
*/ */
#include "stdinc.h" #include "stdinc.h"
#include "list.h" #include "list.h"
#include "client.h" #include "client.h"
#include "client_svstag.h" #include "client_svstag.h"
#include "ircd.h" #include "ircd.h"
#include "send.h" #include "send.h"
#include "parse.h" #include "parse.h"
#include "modules.h" #include "modules.h"
skipping to change at line 58 skipping to change at line 58
* - parv[3] = [-][raw] * - parv[3] = [-][raw]
* - parv[4] = required user mode(s) to see the tag * - parv[4] = required user mode(s) to see the tag
* - parv[5] = tag line * - parv[5] = tag line
*/ */
static void static void
ms_svstag(struct Client *source_p, int parc, char *parv[]) ms_svstag(struct Client *source_p, int parc, char *parv[])
{ {
if (!HasFlag(source_p, FLAGS_SERVICE) && !IsServer(source_p)) if (!HasFlag(source_p, FLAGS_SERVICE) && !IsServer(source_p))
return; return;
struct Client *target_p; struct Client *target_p = find_person(source_p, parv[1]);
if ((target_p = find_person(source_p, parv[1])) == NULL) if (target_p == NULL)
return; return;
uintmax_t ts = strtoumax(parv[2], NULL, 10); uintmax_t ts = strtoumax(parv[2], NULL, 10);
if (ts && (ts != target_p->tsinfo)) if (ts && (ts != target_p->tsinfo))
return; return;
if (strncmp(parv[3], "-", 1) == 0) if (strncmp(parv[3], "-", 1) == 0)
{ {
/* TBD: possibly allow to remove certain tags by numeric */ /* TBD: possibly allow to remove certain tags by numeric */
svstag_clear_list(&target_p->svstags); svstag_clear_list(&target_p->svstags);
skipping to change at line 113 skipping to change at line 113
} }
static void static void
module_exit(void) module_exit(void)
{ {
mod_del_cmd(&svstag_msgtab); mod_del_cmd(&svstag_msgtab);
} }
struct module module_entry = struct module module_entry =
{ {
.version = "$Revision: 9102 $", .version = "$Revision: 9199 $",
.modinit = module_init, .modinit = module_init,
.modexit = module_exit, .modexit = module_exit,
}; };
 End of changes. 3 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)