ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/modules/m_globops.c
(Generate patch)

Comparing ircd-hybrid/trunk/modules/m_globops.c (file contents):
Revision 3155 by michael, Mon Mar 10 21:11:25 2014 UTC vs.
Revision 3156 by michael, Fri Mar 14 19:57:38 2014 UTC

# Line 42 | Line 42
42   *      parv[1] = message text
43   */
44   static int
45 < mo_globops(struct Client *client_p, struct Client *source_p,
46 <           int parc, char *parv[])
45 > mo_globops(struct Client *source_p, int parc, char *parv[])
46   {
47    const char *message = parv[1];
48  
# Line 59 | Line 58 | mo_globops(struct Client *client_p, stru
58      return 0;
59    }
60  
61 <  sendto_server(NULL, NOCAPS, NOCAPS, ":%s GLOBOPS :%s",
61 >  sendto_server(source_p, NOCAPS, NOCAPS, ":%s GLOBOPS :%s",
62                  ID(source_p), message);
63    sendto_realops_flags(UMODE_ALL, L_ALL, SEND_GLOBAL, "from: %s: %s",
64                         source_p->name, message);
# Line 67 | Line 66 | mo_globops(struct Client *client_p, stru
66   }
67  
68   static int
69 < ms_globops(struct Client *client_p, struct Client *source_p,
71 <           int parc, char *parv[])
69 > ms_globops(struct Client *source_p, int parc, char *parv[])
70   {
71    if (EmptyString(parv[1]))
72      return 0;
73  
74 <  sendto_server(client_p, NOCAPS, NOCAPS, ":%s GLOBOPS :%s",
74 >  sendto_server(source_p, NOCAPS, NOCAPS, ":%s GLOBOPS :%s",
75                  ID(source_p), parv[1]);
76    sendto_realops_flags(UMODE_ALL, L_ALL, SEND_GLOBAL, "from: %s: %s",
77                         source_p->name, parv[1]);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)