* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
- *
- * $Id: supported.c 3568 2007-09-09 18:59:08Z jilles $
*/
/* From the old supported.h which is
#include "stdinc.h"
#include "client.h"
-#include "common.h"
#include "numeric.h"
#include "ircd.h"
#include "s_conf.h"
isupport_intptr(const void *ptr)
{
static char buf[15];
- rb_snprintf(buf, sizeof buf, "%d", *(const int *)ptr);
+ snprintf(buf, sizeof buf, "%d", *(const int *)ptr);
return buf;
}
{
static char result[80];
- rb_snprintf(result, sizeof result, "%s%sbq,k,%slj,%s",
+ snprintf(result, sizeof result, "%s%sbq,k,%slj,%s",
ConfigChannel.use_except ? "e" : "",
ConfigChannel.use_invex ? "I" : "",
ConfigChannel.use_forward ? "f" : "",
{
static char result[30];
- rb_snprintf(result, sizeof result, "%s:%i",
+ snprintf(result, sizeof result, "%s:%i",
ConfigChannel.disable_local_channels ? "#" : "&#", ConfigChannel.max_chans_per_user);
return result;
}
{
static char result[30];
- rb_snprintf(result, sizeof result, "bq%s%s:%i",
+ snprintf(result, sizeof result, "bq%s%s:%i",
ConfigChannel.use_except ? "e" : "",
ConfigChannel.use_invex ? "I" : "",
ConfigChannel.max_bans);
{
static char result[200];
- rb_snprintf(result, sizeof result, "NAMES:1,LIST:1,KICK:1,WHOIS:1,PRIVMSG:%d,NOTICE:%d,ACCEPT:,MONITOR:",
+ snprintf(result, sizeof result, "NAMES:1,LIST:1,KICK:1,WHOIS:1,PRIVMSG:%d,NOTICE:%d,ACCEPT:,MONITOR:",
ConfigFileEntry.max_targets,
ConfigFileEntry.max_targets);
return result;
p = get_extban_string();
if (EmptyString(p))
return NULL;
- rb_snprintf(result, sizeof result, "$,%s", p);
+ snprintf(result, sizeof result, "$,%s", p);
return result;
}
{
static char result[200];
- rb_snprintf(result, sizeof result, "%u", ConfigFileEntry.nicklen - 1);
+ snprintf(result, sizeof result, "%u", ConfigFileEntry.nicklen - 1);
return result;
}