[IRCServices Coding] Services 5.0a25 - ChanServ SENDPASS Solution

Andrew Church achurch at achurch.org
Tue Mar 26 14:14:29 PST 2002


>Ok i found it.
>in file /modules/chanserv/sendpass.c just replace the line
>snprintf(body, sizeof(body), getstring(ngi,CHAN_SENDPASS_MAIL_BODY),
>                 ci->name, passbuf, s_ChanServ,  u->username, u->host);
>with the following
>
>snprintf(body, sizeof(body), getstring(ngi,CHAN_SENDPASS_MAIL_BODY),
>                 ci->name, ci->founderpass, s_ChanServ,  u->username, 
>u->host);
>i test it and it's ok now :)

     This is wrong--you'll get garbage if encryption is in use.  The proper
fix is change ngi->pass to ci->founderpass slightly above that.  Fixed for
the next alpha.

  --Andrew Church
    achurch at achurch.org
    http://achurch.org/