View Issue Details

IDProjectCategoryView StatusLast Update
0006105unrealircdpublic2023-03-21 13:55
ReporterPeGaSuS Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSUbuntuOS Version20.04
Product Version6.0.3 
Summary0006105: GLINE always assume 2nd argument as reason, if no reason is specified.
DescriptionExample:
 /gline *@123.123.123.123 12h

is converted into
G-Line added: '*@123.123.123' [reason: 12h] [by: James!WeeChat@PTirc/Staff/James] [duration: permanent]


Opening this bug due to:
<@DALEK> not sure if bug
<@DALEK>  [16:38:05] -irc.valware.uk- [info] G-Line added: '*@test' [reason: +12h] [by: [email protected]] [duration: permanent]
<@DALEK> permanent with reason +12h lol
<@westor> DALEK: what you typed?
<@DALEK> /gline nick +12h


Cheers!
TagsNo tags attached.
3rd party modules

Activities

Jobe

2022-05-19 01:16

reporter   ~0022488

Going by helpop, it should be noted that for /GLINE, "time" is optional and "reason" is not:
Syntax: GLINE <user@host mask or nick> [time] <reason>

PeGaSuS

2023-03-21 13:55

reporter   ~0022801

Adding some thoughts to this:
- If 2nd arg is an integer, assume duration with default reason
- If 2nd arg isn't an integer assume reason with permanent duration

Issue History

Date Modified Username Field Change
2022-05-18 22:48 PeGaSuS New Issue
2022-05-19 01:16 Jobe Note Added: 0022488
2023-03-21 13:55 PeGaSuS Note Added: 0022801