Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
irker
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iDB
irker
Commits
647cbea9
Commit
647cbea9
authored
10 years ago
by
Eric S. Raymond
Browse files
Options
Downloads
Patches
Plain Diff
With -i, message string argument now optional, stdin is read if it is absent.
parent
0c292a45
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NEWS
+2
-0
2 additions, 0 deletions
NEWS
irkerd
+6
-4
6 additions, 4 deletions
irkerd
irkerd.xml
+5
-3
5 additions, 3 deletions
irkerd.xml
with
13 additions
and
7 deletions
NEWS
+
2
−
0
View file @
647cbea9
irker history
irker history
Repository head:
With -i, message string argument now optional, stdin is read if it is absent.
2.10: 2014-06-19
2.10: 2014-06-19
irk no longer fails on ircs channel URLs.
irk no longer fails on ircs channel URLs.
...
...
This diff is collapsed.
Click to expand it.
irkerd
+
6
−
4
View file @
647cbea9
...
@@ -1001,10 +1001,12 @@ if __name__ == '__main__':
...
@@ -1001,10 +1001,12 @@ if __name__ == '__main__':
LOG
.
info
(
"
irkerd version %s
"
%
version
)
LOG
.
info
(
"
irkerd version %s
"
%
version
)
if
args
.
immediate
:
if
args
.
immediate
:
if
not
args
.
message
:
if
not
args
.
message
:
LOG
.
error
(
# We want newline to become '\n' and tab to become '\t';
'
--immediate set (%r), but message argument not given
'
%
(
# the JSON decoder will undo these transformations.
args
.
immediate
))
# This will also encode backslash, backspace, formfeed,
raise
SystemExit
(
1
)
# and high-half characters, which might produce unexpected
# results on output.
args
.
message
=
sys
.
stdin
.
read
().
encode
(
"
string_escape
"
)
irker
.
irc
.
add_event_handler
(
"
quit
"
,
lambda
_c
,
_e
:
sys
.
exit
(
0
))
irker
.
irc
.
add_event_handler
(
"
quit
"
,
lambda
_c
,
_e
:
sys
.
exit
(
0
))
irker
.
handle
(
'
{
"
to
"
:
"
%s
"
,
"
privmsg
"
:
"
%s
"
}
'
%
(
irker
.
handle
(
'
{
"
to
"
:
"
%s
"
,
"
privmsg
"
:
"
%s
"
}
'
%
(
args
.
immediate
,
args
.
message
),
quit_after
=
True
)
args
.
immediate
,
args
.
message
),
quit_after
=
True
)
...
...
This diff is collapsed.
Click to expand it.
irkerd.xml
+
5
−
3
View file @
647cbea9
...
@@ -185,9 +185,11 @@ authenticate the nick on receipt of a welcome message.</para></listitem>
...
@@ -185,9 +185,11 @@ authenticate the nick on receipt of a welcome message.</para></listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term>
-i
</term>
<term>
-i
</term>
<listitem><para>
Immediate mode, to be run in foreground. Takes two
<listitem><para>
Immediate mode, to be run in foreground. Takes a following
following values interpreted as a channel URL and a message
following value interpreted as a channel URL. May take a second
string. Sends the message, then quits.
</para></listitem>
argument giving a message string; if the sedond argument is absent the
message is read from standard input (and may contain newlines).
Sends the message, then quits.
</para></listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term>
-V
</term>
<term>
-V
</term>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment