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

Comparing ircd-hybrid/trunk/modules/m_webirc.c (file contents):
Revision 3096 by michael, Sat Mar 1 23:31:45 2014 UTC vs.
Revision 3110 by michael, Thu Mar 6 20:33:17 2014 UTC

# Line 55 | Line 55 | mr_webirc(struct Client *client_p, struc
55  
56    if (!valid_hostname(parv[3]))
57    {
58 <    sendto_one(source_p, ":%s NOTICE %s :CGI:IRC: Invalid hostname", me.name,
59 <               source_p->name[0] ? source_p->name : "*");
58 >    sendto_one_notice(source_p, &me, ":CGI:IRC: Invalid hostname");
59      return 0;
60    }
61  
# Line 69 | Line 68 | mr_webirc(struct Client *client_p, struc
68  
69    if (!IsConfWebIRC(conf))
70    {
71 <    sendto_one(source_p, ":%s NOTICE %s :Not a CGI:IRC auth block", me.name,
73 <               source_p->name[0] ? source_p->name : "*");
71 >    sendto_one_notice(source_p, &me, ":Not a CGI:IRC auth block");
72      return 0;
73    }
74  
75    if (EmptyString(conf->passwd))
76    {
77 <    sendto_one(source_p, ":%s NOTICE %s :CGI:IRC auth blocks must have a password",
80 <               me.name, source_p->name[0] ? source_p->name : "*");
77 >    sendto_one_notice(source_p, &me, ":CGI:IRC auth blocks must have a password");
78      return 0;
79    }
80  
81    if (!match_conf_password(parv[1], conf))
82    {
83 <    sendto_one(source_p, ":%s NOTICE %s :CGI:IRC password incorrect",
87 <               me.name, source_p->name[0] ? source_p->name : "*");
83 >    sendto_one_notice(source_p, &me, ":CGI:IRC password incorrect");
84      return 0;
85    }
86  
# Line 96 | Line 92 | mr_webirc(struct Client *client_p, struc
92  
93    if (getaddrinfo(parv[4], NULL, &hints, &res))
94    {
95 <
100 <    sendto_one(source_p, ":%s NOTICE %s :Invalid CGI:IRC IP %s", me.name,
101 <               source_p->name[0] ? source_p->name : "*", parv[4]);
95 >    sendto_one_notice(source_p, &me, ":Invalid CGI:IRC IP %s", parv[4]);
96      return 0;
97    }
98  
# Line 125 | Line 119 | mr_webirc(struct Client *client_p, struc
119    }
120  
121    AddUMode(source_p, UMODE_WEBIRC);
122 <  sendto_one(source_p, ":%s NOTICE %s :CGI:IRC host/IP set to %s %s", me.name,
123 <             source_p->name[0] ? source_p->name : "*", parv[3], parv[4]);
122 >  sendto_one_notice(source_p, &me, ":CGI:IRC host/IP set to %s %s",
123 >                    parv[3], parv[4]);
124    return 0;
125   }
126  

Diff Legend

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