summaryrefslogtreecommitdiff
path: root/src/map/irc.c
AgeCommit message (Collapse)AuthorFilesLines
2007-12-18minor code tweakingultramage1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11936 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-17* Added flag.server to indicate interserver socketsultramage1-1/+1
- replaces the previous way (setting 'client_addr' to 0) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11930 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-12* Some preparations for the guild script updateultramage1-1/+1
- cleaned up npc event execution code - cleaned up guild data loading/saving code; to be improved later - removed dummy 'account name' expulsion list management code - removed columns 'rsv1' and 'rsv2' from guild member data - removed columns 'rsv1' 'rsv2' 'rsv3' and 'acc' from guild expulsion data - added upgrade_svn11895.sql for SQL git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11895 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-06-01Fixed ircbot not processing new usersultramage1-196/+166
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10657 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-25Reformatting, warning fixes, unsigned char removalultramage1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10618 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-25Corrected some weird fgets() statements, plus reformatted themultramage1-1/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10616 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-21- Removed the TURBO socket mechanism - it was in fact just using a variable ↵ultramage1-1/+0
to cache a few arithmetic operations (premature optimization) - Since the fifohead mess is gone, fixed leftover bad code structuring git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10599 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-19Reformatting @_@ultramage1-6/+12
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10581 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-09* Added Buuyo-Tama's shortlist for send/eof sockets (defined out for now). FlavioJS1-6/+6
* Replaced toupper/tolower in ladmin by TOUPPER/TOLOWER defines. Shortlist: It's a list of sockets that have data to send and/or are ready for eof processing. It aims to reduce the amount of time spent on do_sendrecv, where it was spending ~13.5% of execution time on a server with 1k users at WoE. thanks to Buuyo-tama for the profile info and code git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10506 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-09* Played around with MinGW a bit today...ultramage1-1/+0
- adjusted code so that it handles mingw-specific compatibility problems - adjusted the makefile, mingw is not a subset of cygwin * As an experiment Corrected many /W4 warnings on the txt login server git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10192 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-05typos: recieve -> receiveultramage1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10163 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-02* Some source code cleaningultramage1-1/+1
- Fixed the badly worded messages during mapserver startup - Cleaned up socket config reading - Split resolve_hostbyname() into 2 separate functions for clarity - Moved the probably obsolete LOWER/UPPER macros to db.c (TODO: remove) - Moved the badly placed compare_item() function to storage.c (see r779) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10119 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-30* Added all the missing defines for ctype.h functions and converted all the ↵FlavioJS1-2/+2
direct uses to the defines. Ref: http://www.eathena.ws/board/index.php?showtopic=145235 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10091 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-09- Added info on packet 0x86 (simple move packet). Not usable until a clear ↵FlavioJS1-1/+1
separation between entering sight/leaving sight/walking in sight is done. - Propagating const char* from the script engine. - ".gat" is appended to the map name before sending the changemapserver packet to the client. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9979 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-21Applied a consistent look to all header files (copyright, ifdefs)ultramage1-4/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9891 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-07Cleaning up of the socket codeultramage1-0/+6
- Shuffled includes around for files that were leeching off of socket.h - Added code that enforces standard shutdown behavior for sockets git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9817 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-07Undid the memset->malloc_set replacementultramage1-27/+27
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9626 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-05- Massive EOL normalization & 'svn:eol-style native' flag setting for all ↵FlavioJS1-543/+543
txt/conf/h/c files. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9410 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-23- Made WFIFOHEAD() check for available buffer size remaining on the ↵skotlex1-0/+1
connection, and when there's not enough space, it will increase it. - Added define TURBO to the Makefile. It enables MouseJstr's socket access optimization which should speed up the code when accessing the write/read buffers repeatedly within a function. - Fixed the functions where the RFIFOHEAD/WFIFOHEAD functions were used incorrectly (prevents TURBO enabled compilations from finishing) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9297 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-17* Fixed potential crash in IRC processing message with '%' using *printf.Lance1-2/+3
* Fixed memory leaking caused by homun_data not freed when removed. * Minor adjustments to sign/unsign in script commands. modified Changelog-Trunk.txt modified src/map/irc.c modified src/map/script.c modified src/map/unit.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9245 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-29- Added printing out whenever the irc-module attempts to connect, to debug ↵skotlex1-1/+6
whether the map-server lag is due to this or not. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8537 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-27* Optional macro MEMSET_TURBO for faster low-level memory initializations.Lance1-27/+27
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8499 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-19- Fixed parse_names on irc.c crashing when receiving a null argument.skotlex1-4/+4
- Modified the parsing of the names line, since some servers will send @ instead of = when separating the information. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7750 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-22- Tested and fixed resolve_hostbyname.skotlex1-30/+2
- Applied said function around most of the code where needed. Removed includes for the OS/network system pretty much from every file (our socket.c file should handle this) - Added clif_getip_long, which returns the ip as a long. Prevents having to include the files to define the int_addr structure in all files that include clif.h - Made the GM mute request bypass the manner_system setting. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7285 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13- Added irc_channel_pass setting and prevent crashing when irc server lookup ↵skotlex1-2/+11
by host fails. Thanks to Trancid for the details. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7133 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-29[Optimized] Lance1-1/+1
- Removed unused checks for unsigned data type and possible logic error for char type (gcc treats char as unsigned). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6814 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29* Using malloc for memory allocations that doesn't need to be pre-initialized.Lance1-2/+2
* Eliminated initializations for pointers returned by calloc. * Moved grfio_final to do_init since it's not used after server boot. * Optimized scripts to return CONSTSTR instead of allocating memory just to return a constant string. Some buildin functions still need work. * Disabled graph since it doesn't work yet. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6355 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6171 ↵Zido1-0/+1
54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18- IRC Bot can now auto-join when kicked from the channelZido1-0/+10
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6170 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18- Added @who to IRC Bot, Refer to changelog.Zido1-1/+18
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6169 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17Refer to changelogZido1-3/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6144 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17- Added @users command to the IRC Bot. Checks no. online users.Zido1-8/+21
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6143 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11- Fixed various include lines in the map server (of the type <include ↵skotlex1-1/+1
"nullpo.h"> -> <include "../common/nullpo.h">) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5985 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-08- The IRC bot now reads a configuration file (irc.c) instead of it all being ↵Zido1-1/+54
hardcoded git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5958 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-08- Fixed irc.c, no more crashesZido1-23/+33
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5954 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-08- Added function status_change_init to initialize all the sc timers. Added ↵skotlex1-1/+1
sc_data initialization to the npc structures who were missing them. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5953 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-07- IRC User access levels now refresh on a mode set and join/partZido1-0/+19
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5948 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-07- Fixed an already free'd pointer error in irc.c:144skotlex1-4/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5947 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-06Accidently left my IRC info in irc.c >.> we really need to make a .conf for it.Zido1-4/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5936 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-06git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5935 ↵Zido1-15/+140
54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01* Fixed compiler warnings.Lance1-2/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5838 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-31Started work on commands for the IRC Bot.zido1-0/+16
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5827 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-30* Cleaned up mistakes in irc.cLance1-13/+7
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5810 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-22- Some cleanups in irc.cskotlex1-1/+7
- Changed ASC_BREAKER's cast to 700ms - Magic skills that ignore element now also don't take into account elemental cards. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5702 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-21- Fixed the inf2 for BA_DISSONANCEskotlex1-3/+3
- Fixed SC_SWOO's opt3 value. - Fixed allowing multiple recast of Dissonance/Ugly-Dance - Fixed those annoying irc.c compile warnings. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5693 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-15* Emulated strtok_r functions to work strictly with ANSI compilers.Lance1-5/+11
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5611 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-18- Cleaned up irc.c (moved variable declarations before code commants >.>)skotlex1-10/+14
- Updated the VC project files by Joshuaali. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5316 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-17- Modified the included files in irc.c, used as reference the includes in ↵skotlex1-4/+17
common/socket.c, will it compile in Windows systems now? git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5310 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-16- Fixed the include in irc.c from strings.h to string.h, which fixes a bunch ↵skotlex1-1/+1
of compilation warnings here... git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5299 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-11Removed #include <lcms.h> from irc.c, which caused compile errors.Valaris1-1/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5255 54d463be-8e91-2dee-dedb-b68131a5f0ec