- Timestamp:
- 2008-02-16T16:25:24Z (17 years ago)
- Branches:
- master
- Children:
- 4eb4c0f
- Parents:
- 903a2fc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r903a2fc r8961950 32 32 33 33 static gboolean irc_userping( gpointer _irc, int fd, b_input_condition cond ); 34 static void irc_welcome( irc_t *irc ); 34 35 35 36 GSList *irc_connection_list = NULL; … … 787 788 irc_spawn( irc, u ); 788 789 789 irc_usermsg( irc, "Welcome to the BitlBee gateway!\n\nIf you've never used BitlBee before, please do read the help information using the \x02help\x02 command. Lots of FAQs are answered there." ); 790 #ifdef WITH_OTR 791 irc_usermsg( irc, "\nOTR users please note: Private key files are owned by the user BitlBee is running as." ); 792 #endif 790 irc_welcome( irc ); 793 791 794 792 if( global.conf->runmode == RUNMODE_FORKDAEMON || global.conf->runmode == RUNMODE_DAEMON ) … … 796 794 797 795 irc->status |= USTATUS_LOGGED_IN; 796 } 797 798 static void irc_welcome( irc_t *irc ) 799 { 800 FILE *f; 801 802 f = fopen( global.conf->welcomefile, "r" ); 803 if( !f ) 804 { 805 irc_usermsg( irc, "Welcome to the BitlBee gateway!\n\nIf you've never used BitlBee before, please do read the help information using the \x02help\x02 command. Lots of FAQs are answered there.\n\nOTR users please note: Private key files are owned by the user BitlBee is running as." ); 806 } 807 else 808 { 809 char linebuf[380]; 810 811 while( fgets( linebuf, 380, f ) ) 812 { 813 irc_usermsg( irc, linebuf ); 814 } 815 816 fclose( f ); 817 } 798 818 } 799 819
Note: See TracChangeset
for help on using the changeset viewer.