mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-10 04:21:02 +00:00
34 lines
732 B
C
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
|