]> jfr.im git - irc/quakenet/newserv.git/commitdiff
ident comparision should use strcmp
authorPaul <redacted>
Sat, 4 Oct 2008 22:43:02 +0000 (23:43 +0100)
committerPaul <redacted>
Sat, 4 Oct 2008 22:43:02 +0000 (23:43 +0100)
--HG--
branch : paul

trusts2/trusts_handlers.c
trusts2/trusts_hash.c

index f7003ce02dd687676d12d514da119cd1977e3ef1..8efd4e7af6d1cf505c349f0f300decf680647224 100644 (file)
@@ -62,7 +62,7 @@ void trusts_hook_newuser(int hook, void *arg) {
       if( (tg->currenton + 1) > tg->maxclones) {
         /* user exceeds trust group limit - disconnect */
         //killuser(NULL, np, "USER: Exceeding Trustgroup Limit.");
       if( (tg->currenton + 1) > tg->maxclones) {
         /* user exceeds trust group limit - disconnect */
         //killuser(NULL, np, "USER: Exceeding Trustgroup Limit.");
-        controlwall(NO_OPER, NL_TRUSTS, "KILL TG %lu: Excedding trustgroup limit (%d / %d) for %s!%s@%s",tg->id, (tg->currenton + 1), tg->maxclones, np->nick, np->ident, np->host->name->content);
+        controlwall(NO_OPER, NL_TRUSTS, "KILL TG %lu: Exceeding trustgroup limit (%d / %d) for %s!%s@%s",tg->id, (tg->currenton + 1), tg->maxclones, np->nick, np->ident, np->host->name->content);
       }
     }
     if ( np->ident[0] == '~')  {
       }
     }
     if ( np->ident[0] == '~')  {
index 38c4210d00a4898226b639a27cbfe545cfba0887..ae7d3d092507a1543213648728d2b1d1158984aa 100644 (file)
@@ -127,7 +127,7 @@ trustgroupidentcount_t* findtrustgroupcountbyident(char *ident, trustgroup_t *t)
 
   for(tgi=trustgroupidentcounttable[trusts_gettrustgroupidenthash(ident)]; tgi; tgi = (trustgroupidentcount_t *)tgi->next) {
     if(tgi->trustgroup == t) {
 
   for(tgi=trustgroupidentcounttable[trusts_gettrustgroupidenthash(ident)]; tgi; tgi = (trustgroupidentcount_t *)tgi->next) {
     if(tgi->trustgroup == t) {
-      if(ircd_strcmp(tgi->ident->content,ident)==0) {
+      if(strcmp(tgi->ident->content,ident)==0) {
         return tgi;
       }
     }
         return tgi;
       }
     }