psyced/world/net/irc/irc.h

34 lines
732 B
C

// $Id: irc.h,v 1.17 2008/01/16 10:59:30 lynx Exp $ // vim:syntax=lpc
//
#include <net.h>
#ifndef NO_INHERIT
inherit IRC_PATH "common";
#endif
#define easychannel2place(name) (index("+&#", name[0]) != -1 ? name[1..] : 0)
#define channel2place(name) (name[0] == '#' ? name[1..] : 0)
#define place2channel(name) ("#"+name)
#ifdef _flag_encode_uniforms_IRC
# define uniform2irc(UNIT) (v("verbatimuniform") == "off"? replace(UNIT, "@", "%") : UNIT)
#else
# define uniform2irc(UNIT) (UNIT)
#endif
#ifdef SERVER
# define SERVER_SOURCE ""
#else
# ifdef RELAY
# define SERVER_SOURCE ":" IRCGATE_NICK " "
# else
# define SERVER_SOURCE ":" SERVER_HOST " "
# endif
#endif
#define MAX_IRC_BYTES 512
#ifndef IRCD
# define IRCD D3
#endif