~ubuntu-branches/ubuntu/trusty/weechat/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/wee-hook.c

  • Committer: Bazaar Package Importer
  • Author(s): Emmanuel Bouthenot
  • Date: 2010-12-27 23:29:46 UTC
  • mfrom: (0.1.5 experimental)
  • Revision ID: james.westby@ubuntu.com-20101227232946-ctzdhvwj2i20wn2v
Tags: 0.3.3-3
* Upload to unstable.
* Downgrade tcl-dev dependency to 8.4 until tcl 8.5 hit unstable.
* Add a patch to make cmake aware of python 2.7 (Closes: #606989).
  Thanks to Matthias Klose.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2003-2010 by FlashCode <flashcode@flashtux.org>
3
 
 * See README for License detail, AUTHORS for developers list.
4
 
 *
5
 
 * This program is free software; you can redistribute it and/or modify
 
2
 * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
 
3
 *
 
4
 * This file is part of WeeChat, the extensible chat client.
 
5
 *
 
6
 * WeeChat is free software; you can redistribute it and/or modify
6
7
 * it under the terms of the GNU General Public License as published by
7
8
 * the Free Software Foundation; either version 3 of the License, or
8
9
 * (at your option) any later version.
9
10
 *
10
 
 * This program is distributed in the hope that it will be useful,
 
11
 * WeeChat is distributed in the hope that it will be useful,
11
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
14
 * GNU General Public License for more details.
14
15
 *
15
16
 * You should have received a copy of the GNU General Public License
16
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 * along with WeeChat.  If not, see <http://www.gnu.org/licenses/>.
17
18
 */
18
19
 
19
20
/*
20
21
 * wee-hook.c: WeeChat hooks management
21
22
 */
22
23
 
23
 
 
24
24
#ifdef HAVE_CONFIG_H
25
25
#include "config.h"
26
26
#endif
1290
1290
    char buffer[4096];
1291
1291
    int num_read;
1292
1292
    
 
1293
    if (hook_process->deleted)
 
1294
        return;
 
1295
    
1293
1296
    num_read = read (fd, buffer, sizeof (buffer) - 1);
1294
1297
    if (num_read > 0)
1295
1298
    {
1355
1358
    
1356
1359
    hook_process = (struct t_hook *)arg_hook_process;
1357
1360
    
 
1361
    if (hook_process->deleted)
 
1362
        return WEECHAT_RC_OK;
 
1363
    
1358
1364
    if (remaining_calls == 0)
1359
1365
    {
1360
1366
        gui_chat_printf (NULL,