aboutsummaryrefslogtreecommitdiffstats
path: root/irc_send.c
Commit message (Collapse)AuthorAgeLines
* Add irc_send_tagged_msg* to send tagged messagesMarius Halden2017-03-17-8/+48
| | | | | | Add support for tagged messages by adding the functions irc_send_tagged_msg*, the old irc_send_msg* functions are now wrappers for these functions without any tags.
* Support motd.txt files bigger than 2048 charsdequis2016-10-18-9/+7
| | | | By using g_file_get_contents()
* Remove the ARCH / CPU defines.Jelmer Vernooij2016-05-15-2/+2
| | | | | | | These only reflect on what arch/cpu bitlbee was built, not on which it is running. This makes the Debian package unreproducible. See e.g. https://tests.reproducible-builds.org/rb-pkg/testing/i386/bitlbee.html
* Check global account away setting in WHO repliesShane Synan2016-01-31-2/+7
| | | | | | | | When sending WHO reply, check if irc_user is the account user and if so set away status according to global account away configuration. Otherwise, reply according to irc_user flags. Fixes global away status not being shown in IRC clients when WHO polling is enabled. Fixes: https://bugs.bitlbee.org/ticket/1247
* IRCv3 userhost-in-names capabilitydequis2015-12-05-2/+11
| | | | Easiest part of ircv3.2
* irc_send_names: refactor to use GString instead of the stackdequis2015-12-05-10/+17
| | | | | | | Because modifying this code was making me REALLY uncomfortable. This still only allocates memory once. Needing to extend the string would be a bug in the length checks, but at least that's harmless now.
* IRCv3 away-notify capabilitydequis2015-11-20-0/+24
| | | | | | | | | | | Neat lightweight notifications of the awayness of contacts. In practice, this means weechat/hexchat users can see away people in their nick list and change show_users to 'online,special,away' to avoid the mode spam completely. These are also sent on online/offline changes, since offline_user_quits can be turned off, and you'd need something when they come back.
* irc_send_whois: Refactor out a get_status_message() functiondequis2015-11-15-10/+35
| | | | Because i'm going to use it elsewhere.
* IRCv3 extended-join capabilitydequis2015-11-08-1/+5
| | | | | | Not very useful for the account features (and i won't implement account-notify), but it has a real name field, and it's *really* easy to implement.
* irc_send_who: move the iu->flags check after iu has a value...dequis2015-10-08-3/+3
| | | | | | Moving this was suggested during the review of the multi-prefix patch as ordering the sets of status_prefix... and it seemed reasonable to me. Thanks valgrind.
* IRCv3 multi-prefix... but mostly just adding prefixes to WHOdequis2015-10-08-13/+19
| | | | | | | | | We can't actually have multiple prefixes internally, so the only thing missing for multi-prefix compliance is actually having the prefix in the WHO reply, which is a rfc1459 thing. Note to future self: check irc logs for the implementation I threw away. The one that actually handled multiple prefixes. I hope that's useful.
* Initial implementation of ircv3 capability negotiationdequis2015-09-10-0/+7
| | | | | Mostly no-op for now. Puts registration on hold, supports the basic commands, and NAKs everything
* irc_send_join: send topic before namesdequis2015-05-05-2/+1
| | | | | Also don't send modes - clients are supposed to request that if they need it.
* irc_send_motd: the return value of read() is signeddequis2015-02-22-1/+1
| | | | | From coverity. Would cause an invalid write if read() fails (but open() doesn't)
* Reindent everything to K&R style with tabsIndent2015-02-20-274/+260
| | | | | | | 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 incorrect Free Software Foundation addressMatej Cepl2015-01-16-2/+2
|
* 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.
* Set PACKAGE to BitlBee-LIBPURPLE for the libpurple variant, because in manyWilmer van der Gaast2012-05-02-2/+3
| | | | | ways it's not BitlBee and I'm tired of getting libpurple-related bug reports.
* Big merge from pesco, closing some OTR issues: #759, #824, #839, #830.Wilmer van der Gaast2011-10-20-15/+44
|\
| * rename irc_usermsg to irc_rootmsg.unknown2011-10-03-15/+41
|/ | | | | | add new irc_usermsg, irc_usernotice. deliver user-specific messages from libotr as notices to that user.
* Include FLOOD=0/9999 (min time between msgs/max burst size) in 005. ThisWilmer van der Gaast2011-03-27-1/+1
| | | | | is by no means a standard ATM but let's try to make it one. :-)
* Added irc_channel_with_user() function to find a suitable channel to showWilmer van der Gaast2010-11-20-2/+2
| | | | | a user's message in, instead of just &bitlbee by default.
* There. BitlBee 3.0, it was about time. :-)Wilmer van der Gaast2010-10-22-1/+1
|
* Move whatsnew stuff into help.txt. Stop putting too much string contentWilmer van der Gaast2010-09-06-1/+1
| | | | | into the executable.
* Oops. One more compiler warning. I wish GCC would give the same warningsWilmer van der Gaast2010-09-05-1/+1
| | | | | with or without -O2.
* Fix compiler warnings. Also fixing irc_send_motd(), which so far got awayWilmer van der Gaast2010-09-05-7/+14
| | | | | with a horrible practice of reading the MOTD file one by one.
* Fix /WHO on single nicks.Wilmer van der Gaast2010-08-25-2/+2
|
* Process incoming XMPP groupchat invites in a saner way: Create a temporaryWilmer van der Gaast2010-08-23-0/+8
| | | | | channel the user can easily /join.
* Some IRC clients/proxies eat empty PRIVMSG lines. BitlBee likes to send themWilmer van der Gaast2010-08-21-1/+1
| | | | | | in multiline msgs/help entries/etc. Send one space instead of a completely empty line so these are shown to the user.
* Oops. We're using channel mode +h (halfop) for a while already, but so farWilmer van der Gaast2010-08-09-3/+4
| | | | | | | | without advertising this in 005. This confuses irssi ans possibly other clients. Fixing that now. Also adding SAFELIST which may make some clients less afraid of using /LIST, and CHANNELLEN with an artifical limit (the code has no max. channel name limit).
* Restore default_target setting, kill last_root_cmd variable and just useWilmer van der Gaast2010-07-29-17/+15
| | | | | the last_channel variable, like for any other user.
* Allow change nicknames when moving contacts between groups. Also fixing aWilmer van der Gaast2010-07-25-1/+2
| | | | | bug that caused many empty channel mode changes being sent.
* Kick the user instead of parting him/her when cleaning up a channel. This isWilmer van der Gaast2010-07-04-0/+6
| | | | | what the older version also did so that Irssi won't clean up the window.
* Show idle + login time info in /WHOIS (if available).Wilmer van der Gaast2010-06-07-0/+8
|
* Send one /QUIT instead of one or more /PARTs for a user that is beingWilmer van der Gaast2010-06-06-0/+5
| | | | | removed. Also restored netsplit simulation.
* Added /part msgs, and the ability to silently remove users from channelsWilmer van der Gaast2010-06-06-1/+1
| | | | | (when sending a /quit instead, for example).
* Show offline/away status better in /WHO and /WHOIS.Wilmer van der Gaast2010-05-04-1/+6
|
* Restore away_devoice.Wilmer van der Gaast2010-05-03-7/+54
|
* Put a channel userlist in irc_channel_user elements so we can save flagsWilmer van der Gaast2010-05-03-1/+6
| | | | | (i.e. modes).
* Don't show an empty status message line in /whois if status_msg is "".Wilmer van der Gaast2010-04-15-2/+3
| | | | | And don't show version info in the response, WTF was that there anyway?
* Support for simple VERSION/PING CTCPs to root.Wilmer van der Gaast2010-04-13-0/+13
|
* Always show root's greeting inside the control channel.Wilmer van der Gaast2010-04-12-7/+0
|
* Show status msg in /WHOIS, using a hopefully more proper 320 numeric reply.Wilmer van der Gaast2010-04-12-9/+6
|
* Don't send the topic at join time if there is none. This seems to be theWilmer van der Gaast2010-04-12-1/+2
| | | | | standard.
* Send nickname change notifications when necessary.Wilmer van der Gaast2010-04-04-0/+6
|
* Get full names properly. Handling of nick_source setting andWilmer van der Gaast2010-04-04-14/+24
| | | | | imcb_nick_hint() is probably still broken.
* Restored multi-line message support.Wilmer van der Gaast2010-03-27-4/+46
|
* Fixed bug in /WHO $channel output.Wilmer van der Gaast2010-03-27-1/+1
|
* irc_usermsg() works a little bit again. Have to figure out how and whereWilmer van der Gaast2010-03-27-3/+18
| | | | | to restore multiline support though.
* Added privmsg handlers to users/channels. root commands are coming back.Wilmer van der Gaast2010-03-27-3/+7
|