We don't know the server's proper name until registration, so the test against that isn't reliable. We shouldn't be able to receive messages from anyone else until we're registered, so this should be safe. This requires changing serversay() to accept the from name instead of the from_server. While we're there, replace the use of alloca() with simpler logic based on m_sprintf().
43 lines
941 B
C
43 lines
941 B
C
/*
|
|
* output.h: header for output.c
|
|
*
|
|
* Written By Michael Sandrof
|
|
*
|
|
* Copyright(c) 1990
|
|
*
|
|
* See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT
|
|
*
|
|
* @(#)$Id$
|
|
*/
|
|
|
|
#ifndef __output_h_
|
|
#define __output_h_
|
|
|
|
void put_echo (char *);
|
|
void BX_put_it (const char *, ...);
|
|
|
|
void BX_send_to_server (const char *, ...);
|
|
void BX_my_send_to_server (int, const char *, ...);
|
|
void BX_queue_send_to_server (int, const char *, ...);
|
|
|
|
void say (const char *, ...);
|
|
void BX_bitchsay (const char *, ...);
|
|
void serversay (int, const char *, const char *, ...);
|
|
void BX_yell (const char *, ...);
|
|
void error (const char *, ...);
|
|
|
|
void refresh_screen (unsigned char, char *);
|
|
int init_output (void);
|
|
int init_screen (void);
|
|
void put_file (char *);
|
|
|
|
void charset_ibmpc (void);
|
|
void charset_lat1 (void);
|
|
void charset_graf (void);
|
|
void charset_cst(void);
|
|
char *ov_server(int server);
|
|
|
|
extern FILE *irclog_fp;
|
|
|
|
#endif /* __output_h_ */
|