* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
- *
- * $Id: s_conf.c 3550 2007-08-09 06:47:26Z nenolod $
*/
#include "stdinc.h"
ConfigFileEntry.hide_opers_in_whois = 0;
if (!alias_dict)
- alias_dict = irc_dictionary_create("alias", strcasecmp);
+ alias_dict = rb_dictionary_create("alias", strcasecmp);
}
#undef YES
if(MyOper(client_p))
{
- rb_snprintf(buffer, sizeof(buffer), "%s!%s@%s{%s}",
+ snprintf(buffer, sizeof(buffer), "%s!%s@%s{%s}",
client_p->name, client_p->username,
client_p->host, client_p->localClient->opername);
return buffer;
}
- rb_snprintf(buffer, sizeof(buffer), "%s!%s@%s{%s}",
+ snprintf(buffer, sizeof(buffer), "%s!%s@%s{%s}",
client_p->name, client_p->username,
client_p->host, client_p->servptr->name);
return buffer;
if (aconf->flags & CONF_FLAGS_TEMPORARY &&
(aconf->status == CONF_KILL || aconf->status == CONF_DLINE))
- rb_snprintf(reasonbuf, sizeof reasonbuf,
+ snprintf(reasonbuf, sizeof reasonbuf,
"Temporary %c-line %d min. - ",
aconf->status == CONF_DLINE ? 'D' : 'K',
(int)((aconf->hold - aconf->created) / 60));
*oper_reason = NULL;
else
{
- rb_snprintf(operreasonbuf, sizeof operreasonbuf, "%s%s(%s)",
+ snprintf(operreasonbuf, sizeof operreasonbuf, "%s%s(%s)",
EmptyString(aconf->spasswd) ? "" : aconf->spasswd,
EmptyString(aconf->spasswd) ? "" : " ",
aconf->info.oper);
/* remove any aliases... -- nenolod */
if (alias_dict != NULL)
{
- irc_dictionary_destroy(alias_dict, free_alias_cb, NULL);
+ rb_dictionary_destroy(alias_dict, free_alias_cb, NULL);
alias_dict = NULL;
}