summaryrefslogtreecommitdiff
path: root/src/core
AgeCommit message (Collapse)Author
2016-06-14Merge pull request #422 from LemonBoy/misc-cleanupailin-nemui
Clean up misc.c
2016-06-13Don't crash when the key isn't found.LemonBoy
2016-06-13Merge pull request #492 from LemonBoy/enumailin-nemui
Enum setting implementation
2016-06-13Use ; as separator instead of ,LemonBoy
2016-06-13Move the validation of the CHOICE setting valueLemonBoy
Also, use a FORMAT to show the error message.
2016-06-12servers-reconnect: pass unix_socket attribute to new connectiondequis
Trying to /reconnect unix sockets turned them into inet.
2016-06-12Strip the surrounding whitespace.LemonBoy
2016-06-12Use strarray_find instead of g_strv_containsLemonBoy
2016-06-12Add a CHOICE type to the settings system.LemonBoy
This is useful to let the user choose an option between a finite set of valid alternatives.
2016-06-06Do not crash on OPTCHAN when item has no serverailin-nemui
May fix bugs.debian.org#826525
2016-06-05Deprecate net_connect()LemonBoy
2016-06-05Factor out some redundant code and remove hashtable_get_keysLemonBoy
2016-06-05str_to_uofft is a tiny wrapper over strtoul{,l}LemonBoy
2016-06-05Update the g_istr_hash function to use the djb hashLemonBoy
2016-06-05Remove unused regexp_matchLemonBoy
2016-06-05Replace strarray_length with g_strv_lengthLemonBoy
2016-06-05Replace strocpy with g_strlcpyLemonBoy
The only difference was that the former returned 1 if the buffer was overflown, but the return value was never checked.
2016-06-05Check the return value of open() in rawlog.cLemonBoy
2016-06-05Replace mkpath with g_mkdir_with_parentsLemonBoy
2016-05-18fix dist compilation failureailin-nemui
remove illegal wcwidth.c include and compile wcwidth.c correct #include in wcwidth.c fallout from #480
2016-05-13Convert string policies from #define to enum.Xavier G
2016-05-13Adjust some conditions.Xavier G
2016-05-13Make get_alignment() available outside special-vars.cXavier G
2016-05-13get_alignment: handle UTF-8 strings.Xavier G
get_alignment now works with columns (width), not bytes, although it is liable to work with bytes if the given text is not a valid UTF-8 string.
2016-05-13Fix indentation of display_sorted_nicks().Xavier G
This was done assuming an "indent with tab, align with spaces" approach. get_alignment also benefited from a minor indentation fix.
2016-05-13Introduce string_chars_for_width().Xavier G
2016-05-13Introduce string_length() and string_width().Xavier G
2016-05-13Leverage string_policy().Xavier G
2016-05-13Introduce string_policy().Xavier G
2016-05-13Rename advance() into string_advance().Xavier G
2016-05-13Move advance() from fe-common/core to core.Xavier G
2016-05-13Move utf8.{h,c} from fe-common/core to core.Xavier G
2016-04-07net_gethosterror: Handle EAI_SYSTEM ("System error") properlydequis
That error code means "check errno". A few users got it and we never figured out what happened - it usually fixed itself after restarting something - so hopefully with this we'll have more information the next time.
2016-03-22Simplify some logic in server_create_connLemonBoy
2016-03-19Throw an error when a chatnet has no available urlLemonBoy
If you type /connect <CN> and the chatnet <CN> has no url available let's just throw an error instead of trying to process <CN> as a url.
2016-03-17Merge pull request #439 from horgh/ssl-errorsTheLemonMan
Clear error queue before SSL I/O operations
2016-03-14Replace spaces with tabsKindOne
2016-03-14Return -1 from null-test to comply with the rest of strarray_findJari Matilainen
2016-03-13Add clear error calls to irssi_ssl_get_iochannelWill Storey
2016-03-13Clear error queue before SSL I/O operationsWill Storey
Otherwise we can see errors that are not related to the operation we check for. SSL_get_error() inspects the thread's error queue. See https://www.openssl.org/docs/manmaster/ssl/SSL_get_error.html for more information.
2016-02-03Merge pull request #410 from LemonBoy/getaddrinfo-v6-flagailin-nemui
Getaddrinfo v6 flag
2016-01-27Add AI_ADDRCONFIG to the getaddrinfo hints.LemonBoy
A first step to untangle the ipv4 vs ipv6 mess. At the time of writing Linux, OpenBSD and FreeBSD all support the AI_ADDRCONFIG flag.
2016-01-27Call getnameinfo with NI_NAMEREQD flag.LemonBoy
This way net_gethostbyaddr will fail when the system is unable to resolve the address to a valid host name. Without this flag in case of failure the function would return the ip address instead of failing.
2016-01-27Minor style fix in net_ip2host.LemonBoy
2016-01-27Delete the HAVE_IPV6 ifdef.LemonBoy
Welcome to the future.
2016-01-24Duplicate the code paths for autocommands.LemonBoy
2016-01-14Change when the autocmds are sent.LemonBoy
As per #175 if a -botcmd is specified for a given channel without a -bots parameter then the command is sent right after joining the channel.
2016-01-11Merge pull request #393 from ailin-nemui/moduleversion-perlailin-nemui
forward ABI to perl modules
2016-01-03Don't break the API.LemonBoy
Have a ignore_find_full method that is the one that all the new code should be using and provide some working stubs for ignore_find and ignore_find_noact.
2016-01-03Clean up the ignore_find API to make it more powerful.LemonBoy
This way we prevent the creation of duplicate ignores since the old code skipped the ignore_find call when a pattern was specified. It should also cover all the cases where the ignores would be wrongly overwritten, such as the case outlined in #78.