/[svn]/ircd-hybrid-7.2/contrib/m_killhost.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/contrib/m_killhost.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 619 by michael, Fri May 12 05:47:32 2006 UTC revision 620 by michael, Wed May 24 18:54:19 2006 UTC
# Line 82  mo_killhost(struct Client *client_p, str Line 82  mo_killhost(struct Client *client_p, str
82    dlink_node *ptr = NULL, *ptr_next = NULL;    dlink_node *ptr = NULL, *ptr_next = NULL;
83    struct Client *target_p = NULL;    struct Client *target_p = NULL;
84    const char *inpath = client_p->name;    const char *inpath = client_p->name;
   char *nick = NULL;  
   char *user = NULL;  
   char *host = NULL;  
85    char *reason = NULL;    char *reason = NULL;
86    char bufhost[IRCD_BUFSIZE];    char bufhost[IRCD_BUFSIZE];
87    char conf_nick[NICKLEN + 1];    char nick[NICKLEN + 1];
88    char conf_user[USERLEN + 1];    char user[USERLEN + 1];
89    char conf_host[HOSTLEN + 1];    char host[HOSTLEN + 1];
90    char def_reason[] = "No reason";    char def_reason[] = "No reason";
91    unsigned int count = 0;    unsigned int count = 0;
92    struct split_nuh_item nuh;    struct split_nuh_item nuh;
# Line 102  mo_killhost(struct Client *client_p, str Line 99  mo_killhost(struct Client *client_p, str
99    }    }
100    
101    nuh.nuhmask  = parv[1];    nuh.nuhmask  = parv[1];
102    nuh.nickptr  = conf_nick;    nuh.nickptr  = nick;
103    nuh.userptr  = conf_user;    nuh.userptr  = user;
104    nuh.hostptr  = conf_host;    nuh.hostptr  = host;
105    
106    nuh.nicksize = sizeof(conf_nick);    nuh.nicksize = sizeof(nick);
107    nuh.usersize = sizeof(conf_user);    nuh.usersize = sizeof(user);
108    nuh.hostsize = sizeof(conf_host);    nuh.hostsize = sizeof(host);
109    
110    split_nuh(&nuh);    split_nuh(&nuh);
111    
# Line 133  mo_killhost(struct Client *client_p, str Line 130  mo_killhost(struct Client *client_p, str
130    
131      if (!MyConnect(target_p) && !IsOperGlobalKill(source_p))      if (!MyConnect(target_p) && !IsOperGlobalKill(source_p))
132        continue;        continue;
133          
134      if (match(nick, target_p->name) &&      if (match(nick, target_p->name) &&
135          match(user, target_p->username) &&          match(user, target_p->username) &&
136          match(host, target_p->host))          match(host, target_p->host))

Legend:
Removed from v.619  
changed lines
  Added in v.620

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28