aboutsummaryrefslogtreecommitdiffstats
path: root/lib/misc.h
Commit message (Collapse)AuthorAgeLines
* Move canohost functions (diff licence) to separate file.Wilmer van der Gaast2017-04-06-3/+0
|
* Remove ip6_*wrap() functions which are no longer needed.Wilmer van der Gaast2017-04-06-3/+0
|
* Add reverse_lookup() function which does a more proper (verified) DNSWilmer van der Gaast2017-04-06-0/+4
| | | | | reverse lookup. (Code copied from OpenSSH instead of redoing it poorly.)
* misc: Add str_pad_and_truncate() helper functiondequis2016-10-17-0/+1
| | | | Useful for tables. See following commit.
* misc.c: Add a str_reject_chars function, use it in otr_filter_colorsdequis2015-11-27-0/+1
|
* Move twitter_parse_id() to parse_int64() in misc.cdequis2015-05-30-0/+1
|
* Reindent everything to K&R style with tabsIndent2015-02-20-43/+41
| | | | | | | Used uncrustify, with the configuration file in ./doc/uncrustify.cfg Commit author set to "Indent <please@skip.me>" so that it's easier to skip while doing git blame.
* Fix UTF8 nick truncation issuesdequis2015-01-16-0/+1
| | | | | | | | | | | | | | When nicks exceeded the length limit, they were cut at 24 bytes and that sometimes left invalid utf8 at the end, which made the nick_ok() validation fail and often broke those nicks completely. This adds a truncate_utf8 function to cut the string at a safe place Also, the method to deduplicate nicks when there's no more place to add underscores was changed to add "_XX" at the end, where XX are two random hex chars. The previous method in those cases was increasing the value of the first character of the nick... which leads to silly and confusing results (i.e. FacebookUser -> GacebookUser)
* Fix incorrect Free Software Foundation addressMatej Cepl2015-01-16-2/+2
|
* srv_lookup: Portability fixes, handle compressed responsesjcopenha2014-07-24-0/+81
| | | | | | | | | | srv_lookup works on cygwin and openbsd now. Provide ns_initparse, friends, and types where they aren't provided by platform. Use dn_expandname instead of custom parser so compressed DNS responses are handled correctly.
* Add limit param to split_command_parts(), fix twitter quotes bugdequis2014-07-24-1/+1
| | | | Only took me a few months to write. I even added a test case.
* I'm still bored on a long flight. Wrote a script to automatically updateWilmer van der Gaast2013-02-21-1/+1
| | | | | | | my copyright mentions since some were getting pretty stale. Left files not touched since before 2012 alone so that this change doesn't touch almost EVERY source file.
* Solve a whole bunch of Twitter module crashes: Twitter responses seem toWilmer van der Gaast2012-09-22-1/+1
| | | | | | be getting truncated sometimes. Treat this as an error in http_client already instead of returning partial data.
* Moving msn_findheader() to lib/misc.c as get_rfc822_header() so I can use itWilmer van der Gaast2011-12-19-3/+1
| | | | | in OAuth as well. (Need it to find the Content-Type: header.)
* When doing SRV lookups, return an array with all RRs instead of just theWilmer van der Gaast2010-08-10-1/+2
| | | | | | first one. The first isn't always the best one and this is currently causing GTalk issues when talk2.l.google.com (which is currently dead) is first.
* Merging loads of stuff from mainline.Wilmer van der Gaast2010-04-14-0/+1
|\
| * Added a mktime_utc() to misc.c using code that used to be in jabber_util.c.Wilmer van der Gaast2010-04-08-0/+1
| | | | | | | | | | I want to use this in the Twitter module.
* | Start handling CTCPs, in a saner way than before.Wilmer van der Gaast2010-04-12-0/+2
|/
* Some const/etc cleanups submitted by domen@coderock.org back in bug #431.Wilmer van der Gaast2010-03-14-1/+1
|
* Partial fix for #419: Moved normalize() and some other stuff to OSCARWilmer van der Gaast2008-06-22-1/+0
| | | | | | becuase it's the only place where it's used, and using this to strip spaces from all screennames before sending them to BitlBee.
* Moved password hash verification to md5_verify_password() so this can beWilmer van der Gaast2008-03-16-0/+2
| | | | | reused for IRC/OPER passwords (to have encrypted in bitlbee.conf).
* Killed info_string_append() and now showing the IP address of ICQ usersWilmer van der Gaast2008-01-12-1/+0
| | | | | in the "info" command response.
* Fixed sockerr_again() usage in Jabber module to (hopefully) fix a 100% CPUWilmer van der Gaast2007-12-12-0/+2
| | | | | usage bug.
* Added word_wrap() function to misc.c and using it at the right places soWilmer van der Gaast2007-10-12-0/+2
| | | | | | that long messages in groupchats also get wrapped properly (instead of truncated).
* Added SRV lookups to automatically find out the correct server for aWilmer van der Gaast2006-10-07-0/+10
| | | | | domain.
* Added "account set" command.Wilmer van der Gaast2006-07-01-0/+3
|
* Added random_bytes() function for better/more reliable randomization andWilmer van der Gaast2006-06-28-3/+7
| | | | | moved set_eval_ops() to a slightly more suitable place.
* Moved Base64-related functions to a separate file and added decode funtions.Wilmer van der Gaast2006-06-25-2/+0
|
* Moving all generic files to lib/ instead of having some in / and some inWilmer van der Gaast2006-06-25-0/+51
protocols/, and adding RC4 code.