ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/branches/newio/modules/m_module.c
(Generate patch)

Comparing ircd-hybrid/trunk/modules/m_module.c (file contents):
Revision 1592 by michael, Sat Oct 27 21:02:32 2012 UTC vs.
Revision 1653 by michael, Wed Nov 14 11:50:55 2012 UTC

# Line 165 | Line 165 | mo_module(struct Client *client_p, struc
165        load_conf_modules();
166        load_core_modules(0);
167  
168 <      sendto_realops_flags(UMODE_ALL, L_ALL,
168 >      sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
169                             "Module Restart: %u modules unloaded, %u modules loaded",
170                             modnum, dlink_list_length(&modules_list));
171        ilog(LOG_TYPE_IRCD, "Module Restart: %u modules unloaded, %u modules loaded",
# Line 199 | Line 199 | mo_module(struct Client *client_p, struc
199  
200      if ((load_one_module(parv[2]) == -1) && check_core)
201      {
202 <      sendto_realops_flags(UMODE_ALL, L_ALL, "Error reloading core "
202 >      sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
203 >                           "Error reloading core "
204                             "module: %s: terminating ircd", parv[2]);
205        ilog(LOG_TYPE_IRCD, "Error loading core module %s: terminating ircd", parv[2]);
206        exit(0);
# Line 216 | Line 217 | mo_module(struct Client *client_p, struc
217      {
218        modp = ptr->data;
219  
220 <      if (parc > 2 && !match(parv[2], modp->name))
220 >      if (!EmptyString(parv[2]) && match(parv[2], modp->name))
221          continue;
222  
223        sendto_one(source_p, form_str(RPL_MODLIST), me.name, source_p->name,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines