Your message dated Thu, 15 Dec 2005 09:15:10 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Should be scriptable
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 24 Oct 2005 13:28:04 +0000
>From [EMAIL PROTECTED] Mon Oct 24 06:28:04 2005
Return-path: <[EMAIL PROTECTED]>
Received: from 216.red-62-57-140.user.auna.net (khazad.dyndns.org)
[62.57.140.216]
by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
id 1EU2Mu-0006rm-00; Mon, 24 Oct 2005 06:28:04 -0700
Received: from rmh by khazad.dyndns.org with local (Exim 4.52)
id 1EU2N1-0003R5-4f; Mon, 24 Oct 2005 15:28:11 +0200
Content-Type: multipart/mixed; boundary="===============1121628982=="
MIME-Version: 1.0
From: Robert Millan <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: please add quiet/dequiet commands
X-Mailer: reportbug 3.17
Date: Mon, 24 Oct 2005 15:28:10 +0200
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
This is a multi-part MIME message sent by reportbug.
--===============1121628982==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: irssi-text
Version: 0.8.9-3.1
Severity: wishlist
Tags: patch
In freenode, there's +q mode in addition to +v. This mode "quiets" someone
independently on wether the channel is moderated.
Attached patch implements /quiet and /dequiet aliases for this command.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL
set to C)
Versions of packages irssi-text depends on:
ii libc6 2.3.5-6 GNU C Library: Shared libraries an
ii libglib2.0-0 2.8.1-1 The GLib library of C routines
ii libncurses5 5.4-9 Shared libraries for terminal hand
ii libperl5.8 5.8.7-6 Shared Perl library
ii libssl0.9.7 0.9.7g-2 SSL shared libraries
ii perl 5.8.7-6 Larry Wall's Practical Extraction
ii perl-base [perlapi-5.8.7] 5.8.7-6 The Pathologically Eclectic Rubbis
irssi-text recommends no packages.
-- no debconf information
--===============1121628982==
Content-Type: text/x-c; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="quiet.diff"
diff -ur irssi-text-0.8.9.old/src/irc/core/modes.c
irssi-text-0.8.9/src/irc/core/modes.c
--- irssi-text-0.8.9.old/src/irc/core/modes.c 2002-12-09 23:00:02.000000000
+0100
+++ irssi-text-0.8.9/src/irc/core/modes.c 2005-10-24 15:09:08.000000000
+0200
@@ -715,6 +715,36 @@
g_free_not_null(nicks);
}
+/* SYNTAX: QUIET <nicks> */
+static void cmd_quiet(const char *data, IRC_SERVER_REC *server,
+ WI_ITEM_REC *item)
+{
+ IRC_CHANNEL_REC *channel;
+ char *nicks;
+
+ CMD_IRC_SERVER(server);
+
+ nicks = get_nicks(server, item, data, 0, 0, &channel);
+ if (nicks != NULL && *nicks != '\0')
+ channel_set_singlemode(channel, nicks, "+q");
+ g_free_not_null(nicks);
+}
+
+/* SYNTAX: DEQUIET <nicks> */
+static void cmd_dequiet(const char *data, IRC_SERVER_REC *server,
+ WI_ITEM_REC *item)
+{
+ IRC_CHANNEL_REC *channel;
+ char *nicks;
+
+ CMD_IRC_SERVER(server);
+
+ nicks = get_nicks(server, item, data, -1, 1, &channel);
+ if (nicks != NULL && *nicks != '\0')
+ channel_set_singlemode(channel, nicks, "-q");
+ g_free_not_null(nicks);
+}
+
/* SYNTAX: MODE <your nick>|<channel> [<mode> [<mode parameters>]] */
static void cmd_mode(const char *data, IRC_SERVER_REC *server,
IRC_CHANNEL_REC *channel)
@@ -778,6 +808,8 @@
command_bind_irc("deop", NULL, (SIGNAL_FUNC) cmd_deop);
command_bind_irc("voice", NULL, (SIGNAL_FUNC) cmd_voice);
command_bind_irc("devoice", NULL, (SIGNAL_FUNC) cmd_devoice);
+ command_bind_irc("quiet", NULL, (SIGNAL_FUNC) cmd_quiet);
+ command_bind_irc("dequiet", NULL, (SIGNAL_FUNC) cmd_dequiet);
command_bind_irc("mode", NULL, (SIGNAL_FUNC) cmd_mode);
command_set_options("op", "yes");
@@ -796,5 +828,7 @@
command_unbind("deop", (SIGNAL_FUNC) cmd_deop);
command_unbind("voice", (SIGNAL_FUNC) cmd_voice);
command_unbind("devoice", (SIGNAL_FUNC) cmd_devoice);
+ command_unbind("quiet", (SIGNAL_FUNC) cmd_quiet);
+ command_unbind("dequiet", (SIGNAL_FUNC) cmd_dequiet);
command_unbind("mode", (SIGNAL_FUNC) cmd_mode);
}
--===============1121628982==--
---------------------------------------
Received: (at 335525-done) by bugs.debian.org; 15 Dec 2005 09:15:12 +0000
>From [EMAIL PROTECTED] Thu Dec 15 01:15:12 2005
Return-path: <[EMAIL PROTECTED]>
Received: from light.bluelinux.co.uk ([193.201.200.221] ident=postfix)
by spohr.debian.org with esmtp (Exim 4.50)
id 1EmpCi-0003Ed-42
for [EMAIL PROTECTED]; Thu, 15 Dec 2005 01:15:12 -0800
Received: from light.bluelinux.co.uk (localhost [127.0.0.1])
by light.bluelinux.co.uk (Postfix) with ESMTP id F0EC1E5B332
for <[EMAIL PROTECTED]>; Thu, 15 Dec 2005 09:15:10 +0000 (GMT)
Received: by light.bluelinux.co.uk (Postfix, from userid 2042)
id C6218E5B331; Thu, 15 Dec 2005 09:15:10 +0000 (GMT)
Date: Thu, 15 Dec 2005 09:15:10 +0000
From: David Pashley <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Should be scriptable
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.9i
X-AV-Checked: ClamAV using ClamSMTP
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
This can be done using a script so closing as I won't be including a
patch for a single network.
--
David Pashley
[EMAIL PROTECTED]
Nihil curo de ista tua stulta superstitione.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]