summaryrefslogtreecommitdiff
path: root/src/fe-common/core/fe-queries.c
AgeCommit message (Collapse)Author
2015-04-07Change all strcmp() to g_strcmp0() to handle nulls gracefullydequis
Just a string replacement (but i did check every one of them) sed -i 's/strcmp(/g_strcmp0(/g' **/*.c
2014-10-26Receive 'self messages' in the right query windowdequis
Original patch by hondza <sedaj2@gmail.com>, from FS#833. I applied several needed style changes, and rebased to current HEAD. This implements the IRCv3.2 self-message extension partially (we can't announce its support through CAP yet). This is also the format used by the 'privmsg' znc module, and is already implemented by several other clients.
2014-06-10Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.David Hill
2007-06-16Use again MSGLEVEL_NICKS for printing a nick change in queries, broken inEmanuele Giaquinta
r2389. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4556 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-06-16Revert r4549.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4555 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-06-10Make -window option of /join and /query accept an optional numeric argumentEmanuele Giaquinta
that specifies the refnum of the window to create the item in, bug #203. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4549 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08Oops. Update address correctly now.Wouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4490 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08Update FSF addressWouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4489 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-08-20Recode patch by decadix/sennethTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3283 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-28Added time, size and level setting types. Breaks some settings - I'll addTimo Sirainen
automatic converter to these settings later. Meanwhile you CVS users can fix your config files yourself :) Time settings allow using "days", "hours", "minutes", "seconds" and "milliseconds" or several of their abbreviations. For example "5d 4h 5msecs". Size settings allow using "gbytes", "mbytes", "kbytes" and "bytes" or their abbrevations. For example "5MB". Level settings are currently handled pretty much the way they were before. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3080 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-14/UNQUERY and /WINDOW GOTO now ignores trailing whitespaceTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2942 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-06/QUERY reverted back.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2936 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-09-19"/QUERY" no longer unqueries, but just complains about not getting enoughTimo Sirainen
parameters. Lets see how many people dislike this change... git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2931 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-06-05Finally - /^msg nick never autocreates an empty window anymore. Added newTimo Sirainen
extern int command_hide_output which can be used to check if /^ was used. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2839 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-10window_bind_add() the query->server_tag, not server->tag as server can beTimo Sirainen
null and crash. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2766 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-29make sure nick changes in query don't print warning if query->address isTimo Sirainen
null git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2738 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-27add temporary window bind if connection is lost with dcc chat.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2729 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-25some nick change events didn't print the address parameter.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2714 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-17/QUERY existing_nick now switches to the window where it exists, instead ofTimo Sirainen
complaining about /window item move (same fix as to /join recently). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2696 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-13when autochanging query's nick to be correct case, don't print theTimo Sirainen
"nick changed" message git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2600 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10crashfixTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2566 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10/SET autoclose_query - now only last received private message affects whenTimo Sirainen
the query is closed, ie. /WHOIS requests or nick changes don't reset the counter. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2549 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-04Use the server tag printing with queries now too.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2389 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-03Added target_type to send_message(), -channel and -nick parameters to /MSGTimo Sirainen
to specify if it's supposed to be to channel/nick. /MSG -channel is used automatically by irssi when sending messages to channel (the "normal" way without /msg). This should help with protocols that don't have any channel name prefixes. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2383 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-20Added WINDOW_REC declaration to common.h, removed unneeded #include ↵Timo Sirainen
"servers.h" from fe-windows.h which broke several files, added the #include in them. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2272 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-28/QUERY without a parameter but with options (eg. /alias query query -window)Timo Sirainen
now does the same /UNQUERY properly. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2162 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-31Print the server tag in "query started" messages with query->server_tag, notTimo Sirainen
query->server->tag since query->server can be NULL when restoring window layout. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1773 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-23removed accidental 'i' :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1768 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-23Added server tag to query_start format.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1767 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-29Added "Closed query with nick" message.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1668 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-26added destroy() function to WI_ITEM_REC. This fixes a potential crash whenTimo Sirainen
"window item destroy" signal was being used. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1655 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-10The automatic query rename wrote the "nick changed" messages to channelsTimo Sirainen
windows too. Now it's done only in the query window. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1546 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-08Command history: allow "next history" to jump back to last msg inTimo Sirainen
history if we already went over it with "prev history" once. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1365 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03When /SET autoclose_windows is ON, don't destroy windows if they haveTimo Sirainen
some level set (like /join -w + /part in status window) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1327 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03I knew removing those checks from "channel created" and "query created"Timo Sirainen
signals broke something :) -window option to /JOIN and /QUERY. This time don't check for any item with same server/name, but check that the item itself doesn't have window set yet. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1326 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03/JOIN #channel and /QUERY nick won't anymore automatically moveTimo Sirainen
channel/query to active window but send a notice to user how to move it. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1325 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03"channel created", "query created" .. don't abort adding window itemTimo Sirainen
even if there already exists another with same name. not sure if this breaks something but at least doing that breaks some things, like /join #a and /query #a after that :) }CVS: ---------------------------------------------------------------------- git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1317 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-17Config file: ircnets -> chatnets, added type = "chat protocol" toTimo Sirainen
chatnet config. Moved reading chatnets to core. Lots of other multiprotocol updates. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1237 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-09Highlighting cleanups. Added /HILIGHT -priority option.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1098 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-07In core/module-formats.h: IRCTXT_ -> TXT_Timo Sirainen
Added "message irc ctcp" signal to print CTCPs git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1094 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-06Removed window parameter from window_item_remove() andTimo Sirainen
window_item_destroy() git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1079 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-01Some query changes. They should now work properly with /SAVEWINDOWSTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1043 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17Some minor query fixes. Nick changes are also detected by checking ifTimo Sirainen
query with another nick from same address if found. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@999 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-02window_[add|remove]_item -> window_item_[add|remove]Timo Sirainen
added window_item_destroy(), window_item_remove() doesn't destroy the item anymore window_find_item()'s first parameter changed from WINDOW_REC to SERVER_REC git-svn-id: http://svn.irssi.org/repos/irssi/trunk@922 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-02"window item remove" signal: destroy the channel/query record _last_Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@919 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-17windows.h conflicted with microsoft's windows.h :) renamed windows.[ch] toTimo Sirainen
fe-windows.[ch] git-svn-id: http://svn.irssi.org/repos/irssi/trunk@846 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-17/SET autocreate_query_level DCCMSGS specifies now if DCC chats shouldTimo Sirainen
create query windows automatically. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@842 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-28Cleaned up printtext.c, split part of it to formats.cTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@796 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-02fixes .. still not perfectTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@713 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-06/set autocreate_query -> /set autocreate_query_levelTimo Sirainen
fixes to /ircnet, /server and /channel commands other updates and fixes git-svn-id: http://svn.irssi.org/repos/irssi/trunk@649 dbcabf3a-b0e7-0310-adc4-f8d773084564