"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/m_svspart.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_svspart.c  (ircd-hybrid-8.2.27.tgz):m_svspart.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_svspart.c /*! \file m_svspart.c
* \brief Includes required functions for processing the SVSPART command. * \brief Includes required functions for processing the SVSPART command.
* \version $Id: m_svspart.c 9102 2020-01-01 09:58:57Z michael $ * \version $Id: m_svspart.c 9199 2020-01-23 17:49:06Z michael $
*/ */
#include "stdinc.h" #include "stdinc.h"
#include "list.h" #include "list.h"
#include "channel.h" #include "channel.h"
#include "client.h" #include "client.h"
#include "hash.h" #include "hash.h"
#include "irc_string.h" #include "irc_string.h"
#include "ircd.h" #include "ircd.h"
#include "send.h" #include "send.h"
skipping to change at line 60 skipping to change at line 60
*/ */
static void static void
ms_svspart(struct Client *source_p, int parc, char *parv[]) ms_svspart(struct Client *source_p, int parc, char *parv[])
{ {
if (!HasFlag(source_p, FLAGS_SERVICE)) if (!HasFlag(source_p, FLAGS_SERVICE))
return; return;
if (EmptyString(parv[2])) if (EmptyString(parv[2]))
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;
if (MyConnect(target_p)) if (MyConnect(target_p))
{ {
channel_do_part(target_p, parv[2], parv[3]); channel_do_part(target_p, parv[2], parv[3]);
return; return;
} }
if (target_p->from == source_p->from) if (target_p->from == source_p->from)
{ {
skipping to change at line 114 skipping to change at line 114
} }
static void static void
module_exit(void) module_exit(void)
{ {
mod_del_cmd(&svspart_msgtab); mod_del_cmd(&svspart_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)